Jump to content

What's wrong with that script?


ratx

Recommended Posts

Hello! I want to create my own version of the serial killer myth. But the game crashes. Here is the script :

 

 

:SER_KILLERthread "SER_KILLER" :SER_KILLER_14if 00FF:   actor $PLAYER_ACTOR sphere 0 in_sphere -227.1285 2694.634 62.6875 radius 40.0 40.0 40.0 on_foot else_jump @SER_KILLER_14 Model.Load(#DWMOLC2)Model.Load(#MICRO_UZI)038B: load_requested_models :SER_KILLER_73if and  Model.Available(#DWMOLC2)  Model.Available(#MICRO_UZI)else_jump @SER_KILLER_73 $KILLER1 = Actor.Create(Gang1, #DWMOLC2, -240.3415, 2718.025, 62.6875)Actor.SetImmunities($KILLER1, 0, 0, 0, 0, 0)093B: unknown_actor $KILLER1 flag 1 Actor.Health($KILLER1) = 1000446: set_actor $KILLER1 immune_to_headshots 0 0946: set_actor $KILLER1 actions_uninterupted_by_weapon_fire 1 02A9: set_actor $KILLER1 immune_to_nonplayer 1 wait 3500 05D3: AS_actor $KILLER1 goto_point -240.1638 2708.339 62.6875 mode 7 -2 ms // versionA wait 5000 05D3: AS_actor $KILLER1 goto_point -227.1285 2694.634 62.6875 mode 7 -2 ms // versionA wait 3500 05D3: AS_actor $KILLER1 goto_point -240.1638 2708.339 62.6875 mode 7 -2 ms // versionA wait 5000 05D3: AS_actor $KILLER1 goto_point -227.1285 2694.634 62.6875 mode 7 -2 ms // versionA :SER_KILLER_283if   Actor.Dead($KILLER1)else_jump @SER_KILLER_283  $KILLER2 = Actor.Create(Gang3, #DWMOLC2, -240.3415, 2718.025, 62.6875)01B2: give_actor $KILLER2 weapon 28 ammo 9999 // Load the weapon model before using this 01B2: give_actor $KILLER2 weapon 28 ammo 9999 // Load the weapon model before using this 081A: set_actor $KILLER2 weapon_skill_to 2 Actor.WeaponAccuracy($KILLER2) = 100Actor.SetImmunities($KILLER2, 0, 0, 0, 0, 0)0946: set_actor $KILLER2 actions_uninterupted_by_weapon_fire 1 093B: unknown_actor $KILLER2 flag 1 Actor.Health($KILLER2) = 8000446: set_actor $KILLER2 immune_to_headshots 0 02A9: set_actor $KILLER2 immune_to_nonplayer 1 0850: AS_actor $KILLER2 follow_actor $PLAYER_ACTOR 05E2: AS_actor $KILLER2 kill_actor $PLAYER_ACTOR Model.Destroy(#DWMOLC2)Model.Destroy(#MICRO_UZI):SER_KILLER_443if   Actor.Dead($KILLER2)else_jump @SER_KILLER_443Actor.RemoveReferences($KILLER1) Actor.RemoveReferences($KILLER2)end_thread 

 

Link to comment
Share on other sites

Ashwin.Star

first thing is you need to put a wait in loops,

example

 

:LableWait 0  // must be hereif///condition ///jf @Lable//next//

 

 

correct them,

 

another thing is

i hope this is not a cleo script

is so, then you should not USE global variable in it

Link to comment
Share on other sites

first thing is you need to put a wait in loops,

example

 

:LableWait 0  // must be hereif///condition ///jf @Lable//next//

 

 

correct them,

 

another thing is

i hope this is not a cleo script

is so, then you should not USE global variable in it

Thanks. Now it's working.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.