PicVert 0 Posted October 5, 2003 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
BraTTy 0 Posted October 6, 2003 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
PicVert 0 Posted October 6, 2003 omg so simple lol but it must be knowed ;) thx Bratty. Share this post Link to post Share on other sites
BraTTy 0 Posted October 6, 2003 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
PicVert 0 Posted October 8, 2003 Maybe with litle delay that came more real ;) but the animation is crapy lol but I need it Thx again Share this post Link to post Share on other sites
PicVert 0 Posted October 8, 2003 Maybe with litle delay that came more real ;) but the animation is crapy lol but I need it Thx again Share this post Link to post Share on other sites
tracy_t 0 Posted November 24, 2003 I've replied to the *copy* of your thread with a solution Share this post Link to post Share on other sites