#1 18-10-2011 18:21

gozo12
Registered: 16-10-2011
Posts: 4

how to create a vehicle ?

hi there , how can i make  a simple code of createing  vehicle like when i press space and n its create a  vehicle

(id 520) ??

Offline

#2 18-10-2011 19:57

Jack Daniel's
Registered: 05-07-2011
Posts: 211

Re: how to create a vehicle ?

{$CLEO .cs}
wait 0
repeat
repeat
  wait 0
until Player.Defined($PLAYER_CHAR)
  if and
   0AB0: key_pressed 0x20
   0AB0: key_pressed 0x4E
  then
   model.Load(#HYDRA)
   038B: load_requested_models
   04C4: store_coords_to 1@ 2@ 3@ from_actor $PLAYER_ACTOR with_offset 1.0 5.0 1.0
   00A5: 4@ = create_car #HYDRA at 1@ 2@ 3@
   wait 100
   model.Destroy(#HYDRA)
  else
   continue
  end
until false

Offline

Board footer

Powered by FluxBB