Home   Help Search Login Register  

Author Topic: figured out how to get LST to move  (Read 446 times)

0 Members and 1 Guest are viewing this topic.

gadolinite

  • Guest
figured out how to get LST to move
« 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

Stalker

  • Guest
Re:figured out how to get LST to move
« Reply #1 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

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:figured out how to get LST to move
« Reply #2 on: 23 Jun 2003, 01:49:50 »
aye, use setvelocity if you gots resistance, if not use the setpos system.  :D
Not all is lost.