GhostXoP Posted January 1, 2013 Share Posted January 1, 2013 Does this animate the movement of objects? Does it include collision detection as well? (hitting a wall, and stopping not allowing moveObject to move the object any longer) Link to comment
Perfect Posted January 1, 2013 Share Posted January 1, 2013 [ Does this animate the movement of objects? Does it include collision detection as well? (hitting a wall, and stopping not allowing moveObject to move the object any longer) Yes. No, the object go through any other objects (maybe except players/peds) and yes. Just check this Example in wiki. someGuy = getPlayerFromName ( "GhostXoP" ) -- If a player called GhostXoP was found then if ( someGuy ) then -- Get the player's position x, y, z = getElementPosition ( someGuy ) -- Create a bed (1700) object near to the player bed = createObject ( 1700, x + 5, y, z ) -- Move the bed towards the player over 3 seconds (3000 milliseconds) moveObject ( bed, 3000, x, y, z ) -- Tell the player in the chat box outputChatBox ( "Moving a bed towards you!", someGuy ) else -- Tell everyone that a player called 'GhostXoP' could not be found outputChatBox ( "Player GhostXoP doesn't exist" ) end Just test the script for better understanding. Link to comment
GhostXoP Posted January 1, 2013 Author Share Posted January 1, 2013 I was hoping it did, Perfect Thanks Link to comment
Anderl Posted January 1, 2013 Share Posted January 1, 2013 Well, you can still try to do the collision detection by yourself with processLineOfSight but you most likely would have to re-work the moveObject to stop it ( I don't remember if there is any other way to stop the object from moving when using that function ). 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