Quantcast

Jump to content

» «
Photo

Need help: Make car drive to a position

No replies to this topic
hiphopBB00
  • hiphopBB00

    Player Hater

  • Members
  • Joined: 23 Jun 2013

#1

Posted 24 June 2013 - 03:34 AM Edited by hiphopBB00, 24 June 2013 - 03:51 AM.

Hi, i'm trying to make script that player car drive to many positions. You guy can test by spawn a boat at palomino dock, then press P+0 to make it work.
CODE

{$VERSION 3.1.1000}
{$CLEO .cs}

//-------------MAIN---------------
thread 'DRVCARC'

:DRVCARC_11
wait 0
if
  Player.Defined($PLAYER_CHAR)
else_jump @DRVCARC_11

:DRVCARC_12
wait 0
if and
0AB0:   key_pressed 80
0AB0:   key_pressed 48
  Actor.Driving($PLAYER_ACTOR)
else_jump @DRVCARC_11
0@ = Actor.CurrentCar($PLAYER_ACTOR)

0615: define_action_sequences 1@
05D1: AS_actor -1 drive_car 0@ to  2103.3625 -27.2164 0.7913 speed  100.0  2  0  5 //-START-
05D1: AS_actor -1 drive_car 0@ to  2121.7729 86.3303 0.759 speed  100.0  2  0  5
05D1: AS_actor -1 drive_car 0@ to  2201.7061 318.5951 0.389 speed  100.0  2  0  5
05D1: AS_actor -1 drive_car 0@ to  2120.6611 484.7034 0.7261 speed  100.0  2  0  5

05D1: AS_actor -1 drive_car 0@ to  1748.7454 541.0309 0.6007 speed  100.0  2  0  5
05D1: AS_actor -1 drive_car 0@ to  1108.2168 643.9203 0.2835 speed  100.0  2  0  5
05D1: AS_actor -1 drive_car 0@ to  965.067 628.6064 0.7145 speed  100.0  2  0  5

05D1: AS_actor -1 drive_car 0@ to  -162.9366 416.792 0.8848 speed  100.0  2  0  5
05D1: AS_actor -1 drive_car 0@ to  -941.7777 590.8659 0.7369 speed  100.0  2  0  5 //
05D1: AS_actor -1 drive_car 0@ to -1505.1461 1499.2831 0.5078  speed  100.0  2  0  5
05D1: AS_actor -1 drive_car 0@ to -1450.7104 1507.5431 0.4977 speed  100.0  2  0  5 //-X-

05D1: AS_actor -1 drive_car 0@ to -1362.7502 1500.9033 0.902  speed  100.0  2  0  5
05D1: AS_actor -1 drive_car 0@ to -1362.7502 1500.9033 0.902  speed  100.0  2  0  5
05D1: AS_actor -1 drive_car 0@ to -941.7777 590.8659 0.7369  speed  100.0  2  0  5
05D1: AS_actor -1 drive_car 0@ to  -567.3588 396.2409 0.7135 speed  100.0  2  0  5 //-HOME-

05D1: AS_actor -1 drive_car 0@ to  -175.4123 315.7126 0.8042 speed  100.0  2  0  5
05D1: AS_actor -1 drive_car 0@ to  536.1237 464.3447 0.8018 speed  100.0  2  0  5
05D1: AS_actor -1 drive_car 0@ to  1110.3573 619.4804 0.7899 speed  100.0  2  0  5
05D1: AS_actor -1 drive_car 0@ to  2019.6425 461.5696 0.8398 speed  100.0  2  0  5

05D1: AS_actor -1 drive_car 0@ to  2179.0352 358.6202 0.6808 speed  100.0  2  0  5
05D1: AS_actor -1 drive_car 0@ to  2155.5881 225.571 0.8251 speed  100.0  2  0  5
05D1: AS_actor -1 drive_car 0@ to  2063.5874 -56.5608 0.7691 speed  100.0  2  0  5
0616: define_action_sequences_end 1@
0618: assign_actor $PLAYER_ACTOR to_action_sequences 1@
061B: remove_references_to_AS_pack 1@
jump @DRVCARC_11


But it stopped at seventh positions and i don't know how to make it work... Any idea?

P/S: Sr for my crappy english...




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users