×
Меню
Индекс

MSFD Moving along an objects axis

Move axis(x/y/z), units/sec_enum
 
Move x, 100
Object_ID->Move Z, 30
 
Moves the object along the selected axis (x, y, or z) at the speed selected. This speed is in units per second (21.3 units per foot). Thus, the distance moved per frame will depend on your frames per second, while the distance moved in a unit time will not. This movement is based on the object’s local coordinate system. Thus, a positive y movement will always move the object along its local forward vector:
 
 
 
Note: Move will not work on Actors, including the player. However, it will work on dead actors (Forum info / Argent). As with all functions using a "fix", move requires that the object is placed into the game world in the editor, before you can use it in a script:
 
PlaceAtPC "My_Object", 1,1,1
My_Object->Move x, 10
 
will not work if "My Object" has not already been placed, but you can have a local script running on "MyObject" that just uses
Move x, 10