hi, i'm doing a little EE in my map. the first step is to shoot to a horse (don't ask me why) for keep a thundergun for free. so i put a trigger damage wich targetname thun_trigger thats are all script i put in the zombiemode.gsc first i declared the first step thread
i tried your version, but it still don't give me the thundergun Post Merge: June 27, 2014, 04:04:14 pmwooops, i don't read to change level.player to player. now all works perfectly, really thanks!
i tried your version, but it still don't give me the thundergun
Code Snippet
Plaintext
self waittill("trigger",player); if(level.tun == 0) { player takeWeapon( player getCurrentWeapon() ); player giveWeapon("thundergun"); player switchToWeapon("thundergun"); level.tun = 1; }
Can remove if statement but it's your call. [/quote]
Last Edit: June 27, 2014, 04:05:55 pm by DidUknowiPwn
Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms.
self waittill("trigger",player); if(level.tun == 0) { player takeWeapon( player getCurrentWeapon() ); player giveWeapon("thundergun"); player switchToWeapon("thundergun"); level.tun = 1; }
Can remove if statement but it's your call.
I wouldn't consider this proper as it does not check the player's inventory size. If they only had one weapon this would not put the thundergun in the second slot. There is already a function for giving weapons, which is maps\_zombiemode_weapons::weapon_give(weaponname).
I wouldn't consider this proper as it does not check the player's inventory size. If they only had one weapon this would not put the thundergun in the second slot. There is already a function for giving weapons, which is maps\_zombiemode_weapons::weapon_give(weaponname).
That's true, but expected him to have already done that but oh well.