*I mean't to put a help tag but apparently it didn't check the box*
So I am trying to do an E2 where if I aim at something and press left-click it's mass will change to 50000, and when I right-click mass = 1, but this should only happen if I am holding gravity gun.
#FIGURED IT OUT#
Code below.
I figured it out, for anyone who wants to know my code now looks like this.
[CODE]
@name MegaPowerGravitygun
interval(1)
O = owner()
AimEntity = owner():aimEntity()
WeaponHeld = toString(O:weapon())
if ( WeaponHeld == "Weapon [32]" ) { if ( O:keyAttack2() ) { AimEntity:setMass(1) } }
if ( WeaponHeld == "Weapon [32]" ) { if ( O:keyAttack1() ) { AimEntity:setMass(50000) } }
[/CODE]
Sorry, you need to Log In to post a reply to this thread.