IMG

 
IMG
IMG   IMG
  Welcome to GTAForums! Be sure to check out the Grand Theft Auto V Forum.

You are not registered! (If you are, click here to login) Registering is fast, free and easy and allows you to instantly reply to any topic on GTAForums.
Why wait? Click here to register your own unique username and become part of the ever-growing community!


( Log In | Register | Revalidate Validation E-mail )
Quick Log-In:
  IMG
       
>
Forum Rules GTA Modification Forums

Please post mod releases in the Mod Showroom

GTAGarage.com
free mod hosting from GTANet, simply login with your GTAForums account details

GTAModding.com
GTANet's modding wiki

GTA Modding Chatroom
provided by irc.gtanet.com (Don't have an IRC client? Click here)


  Reply to this topicStart new topicStart Poll

 What's wrong with that script?

 
ratx  
Posted: Thursday, Jun 14 2012, 09:47
Quote Post


There are myths in all games!
Group Icon
Group: Members
Joined: Aug 20, 2011

XXXXX



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

CODE
:SER_KILLER
thread "SER_KILLER"

:SER_KILLER_14
if
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_73
if 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) = 100
0446: 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_283
if
  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) = 100
Actor.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) = 800
0446: 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_443
if
  Actor.Dead($KILLER2)
else_jump @SER_KILLER_443
Actor.RemoveReferences($KILLER1)
Actor.RemoveReferences($KILLER2)
end_thread
PM
  Top
 

 
Ashwin the new boy  
Posted: Thursday, Jun 14 2012, 10:10
Quote Post


I am The Most Confused Person
Group Icon
Group: Members
Joined: Nov 14, 2010

ia.gif

XXXXX



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

:Lable
Wait 0  // must be here
if
///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
Users WebsitePM
  Top
 

 
ratx  
Posted: Thursday, Jun 14 2012, 12:33
Quote Post


There are myths in all games!
Group Icon
Group: Members
Joined: Aug 20, 2011

XXXXX



QUOTE (Ashwin the new boy @ Thursday, Jun 14 2012, 10:10)
first thing is you need to put a wait in loops,
example
CODE

:Lable
Wait 0  // must be here
if
///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.
PM
  Top
 

 

0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)

0 Members:

Topic Options Reply to this topicStart new topicStart Poll
Search topic for posted by (exact match)



 
IMG IMG