Jump to content
Sign in to follow this  
PicVert

Help needed to make a script

Recommended Posts

I would make a script that use action command to rotate a vehicle 360° by using step of 30° then action command to rotate 30° again by right or left side.

I need only the code to rotate 30° right or left.

Did some one know this line of code ?

Thx a lot.

Share this post


Link to post
Share on other sites

Would you like to do it within the useraction like this:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

class UserActions

{

class rotateright

{

displayName="Turn Right";

position="driver";

radius=3.0

condition="driver this";

statement="this setdir ((getdir this)+30)";

};

class rotateleft

{

displayName="Turn Left";

position="driver";

radius=3.0

condition="driver this";

statement="this setdir ((getdir this)-30)";

};

};

};

Untested config.cpp code

Share this post


Link to post
Share on other sites

omg so simple lol but it must be knowed ;) thx Bratty.

Share this post


Link to post
Share on other sites

Well thats the easy route, will move it 30 degrees instant.Could get fancy and increment it

Share this post


Link to post
Share on other sites

Maybe with litle delay that came more real ;) but the animation is crapy lol but I need it smile_o.gif

Thx again

Share this post


Link to post
Share on other sites

Maybe with litle delay that came more real ;) but the animation is crapy lol but I need it smile_o.gif

Thx again

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×