golanu21 Posted August 5, 2013 Share 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.. Link to comment
Ab-47 Posted August 5, 2013 Share 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. Link to comment
golanu21 Posted August 5, 2013 Author Share 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 Link to comment
EstrategiaGTA Posted August 5, 2013 Share Posted August 5, 2013 Do you mean move the player? Link to comment
csiguusz Posted August 5, 2013 Share Posted August 5, 2013 Slap uses setElementVelocity, you can try using it to do waht you want. Link to comment
Ab-47 Posted August 21, 2013 Share Posted August 21, 2013 I don't understand your needs, maybe: local posx, posy, posz = getElementPosition(localPlayer) setElementPosition(localPlayer, posx + 2, posy + 2, posz) Link to comment
Moderators IIYAMA Posted August 21, 2013 Moderators Share 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 Link to comment
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