RotateX/Y/Z and move forward
Moderator: Moderators
-
Runt
- First Lieutenant
- Posts: 188
- Joined: Wed Feb 11, 2004 5:03 pm
- Location: The Netherlands
- Contact:
RotateX/Y/Z and move forward
Hey,
I want an object moving forward and rotateX/Y/Z at the same time.
Maybe with a while loop ?
Thanks
I want an object moving forward and rotateX/Y/Z at the same time.
Maybe with a while loop ?
Thanks
well i would mess with angles myself.
but you can use movexup etc like so
but you can use movexup etc like so
Code: Select all
$object moveup 32
$object move
$object movexup 77
$object waitmove
iprintln "finished mooving both"
-
Rookie One.pl
- Site Admin
- Posts: 2752
- Joined: Fri Jan 31, 2003 7:49 pm
- Location: Nowa Wies Tworoska, Poland
- Contact:
You can issue a few move commands at a time and activate them with one waitmove, I mean like this:
Self will start moving diagonally north-west-down at the moment when the waitmove command is issued.
@Viper:
Will set local.object's speed to 150 units per second.
Code: Select all
self moveNorth 16
self moveWest 16
self moveDown 16
self waitmove@Viper:
Code: Select all
local.object speed 150-
Runt
- First Lieutenant
- Posts: 188
- Joined: Wed Feb 11, 2004 5:03 pm
- Location: The Netherlands
- Contact:
Thankyou all
or
This is also possible ?
Code: Select all
$object moveto $waypoint1
$object rotateYdownto 180
$object waitmove
Code: Select all
self moveto $waypoint1
self moveWest 16
self moveDown 16
self waitmove-
Green Beret
- Major General
- Posts: 746
- Joined: Mon Apr 19, 2004 12:21 pm
- Contact:
-
Rookie One.pl
- Site Admin
- Posts: 2752
- Joined: Fri Jan 31, 2003 7:49 pm
- Location: Nowa Wies Tworoska, Poland
- Contact:
- HDL_CinC_Dragon
- Brigadier General
- Posts: 574
- Joined: Mon Dec 22, 2003 8:32 pm
-
Green Beret
- Major General
- Posts: 746
- Joined: Mon Apr 19, 2004 12:21 pm
- Contact:
-
Runt
- First Lieutenant
- Posts: 188
- Joined: Wed Feb 11, 2004 5:03 pm
- Location: The Netherlands
- Contact:
When I use this:
I get this in console:

And when I apply this script to an object :

Code: Select all
test:
$test moveto $waypoint1
$test rotateYdownto 180
$test waitmove Code: Select all
Error, no script should be loaded before loadout.scrAnd when I apply this script to an object :





