Zin
Expert
- Joined
- Aug 1, 2013
- Messages
- 1,738
- Solutions
- 2
- Reaction score
- 117
Hi Im just experimenting with this script to put on my script to make it a bit better i have made it so an actor spawns on a bike nearby and drives to you but you have a camera on him so you know he is coming but when he comes and stops the game crashes. I'm sure its the "AS actor exit car" code because i added a wait before that and it crashed after wait.
This is the code.
This is the code.
Code:
:TERMABK
wait 0
if
00F1: actor 18@ sphere 0 near_point 10@ 11@ 12@ radius 10.0 10.0 10.0 stopped_in_car
jf @TERMABK
:ACTORSPAWN
wait 0
015A: restore_camera
0633: AS_actor 18@ exit_car
Actor.Health(18@) = 500
Actor.SetImmunities(18@, 1, 1, 1, 1, 1)
Actor.GiveWeaponAndAmmo(18@, Shotgun, 99999)
Actor.WeaponAccuracy(18@) = 300
07DD: set_actor 18@ attack_rate 300 // previously known as temper_to
07AF: $terminator = player $PLAYER_CHAR group
0630: put_actor $PLAYER_ACTOR in_group $bodyguard as_leader
0631: put_actor 18@ in_group $bodyguard
jump @THREATLIST