Warning: include(/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php): failed to open stream: No such file or directory in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Warning: include(): Failed opening '/var/www/html/forum/Sources/../../../includes/depot_files/OFPEC_get_header_image.inc.php' for inclusion (include_path='.:/usr/local/lib/php') in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 146

Notice: Undefined index: OFPEC in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152

Notice: Trying to access array offset on value of type null in /var/www/html/forum/Sources/Load.php(2272) : eval()'d code on line 152
    Home   Help Login Register  

Author Topic: figured out how to get LST to move  (Read 614 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.