OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: gadolinite on 22 Jun 2003, 18:57:48
-
In order to get the LST to move, you need a loop the sets its position on the X axis.
move = false
#loop
_x = getpos <LST name> select 0
_y = getpos <LST name> select 1
<LST name> setpos [(_x - <distance to move per millisecond>),_y,0]
~.001
?not(move) : goto "loop"
this situation is perfect for cutscenes
-
Wouldn't it be easier to just setvelocity the LST ?
LST setvelocity [0.1,0,0] would do the trick
-
aye, use setvelocity if you gots resistance, if not use the setpos system. :D