golanu21 Posted August 5, 2013 Posted August 5, 2013 hi guys, i want to make a script.. but idk how.. i want when player make something... to PUSH it in a direction..
Ab-47 Posted August 5, 2013 Posted August 5, 2013 createObject moveObject onColShapeHit Required arguments, if what you mean by "PUSH", I assume a player entering a col-shape and the object moving? Otherwise it depends on the typical GTA objects, if they're not stable.
golanu21 Posted August 5, 2013 Author Posted August 5, 2013 man, i want for example function killPlayerIfTheyPressThisKey ( thePlayer, key ) if ( getControlState ( thePlayer, key ) ) then outputChatBox ( "You can do that..", thePlayer ) --THERE IS PUSHING, something like slap but in other direction else --- end end
csiguusz Posted August 5, 2013 Posted August 5, 2013 Slap uses setElementVelocity, you can try using it to do waht you want.
Ab-47 Posted August 21, 2013 Posted August 21, 2013 I don't understand your needs, maybe: local posx, posy, posz = getElementPosition(localPlayer) setElementPosition(localPlayer, posx + 2, posy + 2, posz)
Moderators IIYAMA Posted August 21, 2013 Moderators Posted August 21, 2013 Slap uses setElementVelocity, you can try using it to do waht you want. yep function killPlayerIfTheyPressThisKey ( thePlayer, key ) if ( getControlState ( thePlayer, key ) ) then outputChatBox ( "You can do that..", thePlayer ) setElementVelocity ( thePlayer, 3, 3, 1 ) else --- end end
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now