Originally Posted by
Loveboy
hello guys
if i press f i will get a mp44.. i press but i dont get
here script
if(other useButtonPressed())
{
mp44_mp = "mp44_mp";
other takeWeapon(other getCurrentWeapon());
other giveWeapon(mp44_mp);
}
please help me
Unless "other" is specifically defined as the player entity, always use "self" as the player entity:
Code:
if( self useButtonPressed() )
{
self takeWeapon( self getCurrentWeapon() );
self giveWeapon( "mp44_mp" );
self setWeaponSlotWeapon( "primary", "mp44_mp" );
self giveMaxAmmo( "mp44_mp" );
self switchtoWeapon( "mp44_mp" );
}