OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: gadolinite on 22 Jun 2003, 18:57:48

Title: figured out how to get LST to move
Post 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
Title: Re:figured out how to get LST to move
Post by: Stalker on 22 Jun 2003, 21:11:38
Wouldn't it be easier to just setvelocity the LST ?
LST setvelocity [0.1,0,0] would do the trick
Title: Re:figured out how to get LST to move
Post by: Artak on 23 Jun 2003, 01:49:50
aye, use setvelocity if you gots resistance, if not use the setpos system.  :D