And the next problem is with the dead bodies of the Vagos. I want the dead bodies of the Vagos to disappear, not to stay, as this causes alot of problems. I've tried multiple ways to get around this, but I can't get the bodies to go away.
Heres the code-
|thread 'VSPAWN' |
0AB0: key_pressed 50
04C4: store_coords_to 0@ 1@ 2@ from_actor $PLAYER_ACTOR with_offset 37.0 37.0 0.0
02C0: store_to 30@ 31@ 32@ ped_path_coords_closest_to 0@ 1@ 2@
0209: 15@ = random_int_in_ranges 108 111
3@ = Actor.Create(Criminal, 15@, 30@, 31@, 32@)
01B2: give_actor 3@ weapon 22 ammo 9999 // Load the weapon model before using this
Actor.WeaponAccuracy(3@) = 60
081A: set_actor 3@ weapon_skill_to 1
07A5: AS_actor 3@ attack_actor $PLAYER_ACTOR 0 ms
// The "Actor.RemoveReferences(3@)" has to be added somewhere, but I can't get it in a suitable location for bodies to go away.
I hope someone can help me out.