Thought this maybe useful for some people,
Spawn a vehicle
Spawn an actor
Spawn a vehicle
- Code:
{$CLEO}
0A95: enable_thread_saving
014B: 1@ = init_parked_car_generator #INFERNUS color -1 -1 1 alarm 0 door_lock 0 0 10000 at 2435.302 -1671.848 12.8007 angle 90.0
014C: 1@ 101 // Set car generator 1@ cars to generate to 101 (Infinite times)
0A93: end_custom_thread
Spawn an actor
- Code:
{$CLEO}
0000:
:Spawn_01
while true
wait 250
if
Player.Defined($PLAYER_CHAR)
then
if
00E1: 0 8 // BackSpace
then
break
end
end
end // while
04C4: store_coords_to 1@ 2@ 3@ from_actor $PLAYER_ACTOR with_offset 0.0 5.0 0.0
#BMYDJ.Load
:Spawn_02
while true
if
#BMYDJ.Available
then
break
end
wait 0
end
Actor.Create(4@, 23, #BMYDJ, 1@, 2@, 3@)
Actor.RemoveReferences(4@)
#BMYDJ.Destroy
wait 250
jump @Spawn_01