Call of Duty 5: World at War => Help Desk => Scripting => Topic started by: KDXDARK on April 02, 2014, 08:42:52 pm
Title: Powerup problem
Post by: KDXDARK on April 02, 2014, 08:42:52 pm
so i create a custom powerup script and i dont know why it dont give me the weapon
here is the script
also i try using "self" but it dont work :/
Title: Re: Powerup problem
Post by: daedra descent on April 02, 2014, 08:59:14 pm
None of the code that you posted helps any because their not giving the full context of the script itself.
However for this,
self should probably be used... i mean it works but you need to define the player by passing the number through when you could just use self which would be more efficient. also the function argument "drop_weapon" isn't used, so it should probably be removed.
Title: Re: Powerup problem
Post by: KDXDARK on April 02, 2014, 09:20:03 pm
well now it give me the weapon but it dont play the sound :/
Title: Re: Powerup problem
Post by: daedra descent on April 02, 2014, 09:23:27 pm