Jump to content
james23222000

Set Rotation

Recommended Posts

I have been creating a script for the LA mod called LACityWorks and LAToCityWorks (I am not part of the mod team so this is unofficial). I have got 3 tow trucks to spawn at the city works. But when the spawn they are facing the opposite direction to the way I want them to be. I have tried everything to rotate them and it has all ended up not working. So I was wondering is there a way in the script to get the vehicles facing the right way?

Hope you can help.

Regards

James

Link to comment
Share on other sites

I have worked out a piece of code that I can use to do it:

m.PushActionTurnTo(ACTION_APPEND, xxxx)

But I am not sure how this piece of code works, i tried:

m.PushActionTurnTo(ACTION_APPEND, VO_TOW012)

and the game gave me a load of error messages.

Can anyone tell me how to use this properly.

Regards

James

Link to comment
Share on other sites

Guest Oliwerko

Wouldn't the SetRotation void do the job better? I didn't try it, but I would use that instead of PushAction command if I wanted to initially spawn something in a particular direction. Or SetLookAtDir. Try different functions. PushAction is probably not the best solution for this one.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...