Page 1 of 1
Scripting With Player Health, Etc
Posted: Thu Apr 12, 2007 2:08 am
by h4xx3d
So, I'm getting back into modding and scripts seem to have the most potential for interesting effects.
Anyways, how would I go about writing a script that would give the current player more ammo or health on X event, etc? Any help would be greatly appreciated.
Posted: Thu Apr 12, 2007 2:58 am
by Crazy_Colombiano
you dont need scripts for giving a player more health, ammo
all you have to do is to meta edit it in the weap and bipd tag
Posted: Thu Apr 12, 2007 5:17 am
by xXxCocoFangxXx
That is not what he is asking though.
Sorry but I can't help you, I don't know how.
Posted: Thu Apr 12, 2007 5:21 am
by latinomodder
theres alot of scripts for that, your best bet is to go into sp maps and learn how they work.
Posted: Thu Apr 12, 2007 12:18 pm
by JUSTNUKEIT
latinomodder wrote:theres alot of scripts for that, your best bet is to go into sp maps and learn how they work.
I don't know anything about scripting, but i don't think there is anything like that in sp. if so please give an example.
Posted: Thu Apr 12, 2007 12:53 pm
by h4xx3d
For clarification, I mean that when a player enters a certain area, they gain/lose health, or ammo. Or when X event occurs they gain/lose health/ammo, etc.
I will look around in SP maps to see what I can find and will share any progress. There seems to be very little descriptive information around these forums pertaining to scripting.
Posted: Thu Apr 12, 2007 12:59 pm
by Prey
h4xx3d wrote:For clarification, I mean that when a player enters a certain area, they gain/lose health, or ammo. Or when X event occurs they gain/lose health/ammo, etc.
I will look around in SP maps to see what I can find and will share any progress. There seems to be very little descriptive information around these forums pertaining to scripting.
Really.
Posted: Thu Apr 12, 2007 1:02 pm
by h4xx3d
Yes, I've read that, but it does not effectively tell you how to write your own scripts. It explains how to use the ones already within the game.
Posted: Thu Apr 12, 2007 2:18 pm
by Supermodder911
ive one simalar but not realy my script makes it so when a player enters a death zone it spawns ai sqads i dont know about health and all that
Posted: Thu Apr 12, 2007 2:34 pm
by h4xx3d
Well, from Soldier of Lite's list, there is one that looks interesting:
[045](void damage_players)
Possibly a negative value would increase the players health? However, I've still no idea how to use this. If you could help me, it would be greatly appreciated
[One of the things I would like to do is make it so that when your flag is in enemy possession, you gain an overshield, or have unlimited ammo, or something similar. Is it possible to use flag possession as an event?]