deleted account Posted February 17, 2018 Share Posted February 17, 2018 NOTE: The game does not crash with a "stopped working" pop-up, it's the type of crash that requires a Trainer to kill the process or to restart your PC, commonly associated with something wrong with the model, I have used different models for the mod and it works, the model of the Ped that is supposed to spawn is in the game and is written in the code properly. What is the problem? // This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013 {$CLEO .cs} //-------------MAIN--------------- thread 'ALIENMON_THREAD' :ALIENMON_THREAD_19 wait 0 if Player.Defined($PLAYER_CHAR) jf @ALIENMON_THREAD_19 if $ONMISSION == 0 jf @ALIENMON_THREAD_19 if 00FE: actor $PLAYER_ACTOR sphere 0 in_sphere 2490.4607 2355.7524 4.2109 radius 75.0 75.0 75.0 jf @ALIENMON_THREAD_19 023C: load_special_actor 'aliendemon' as 1 // models 290-299 :ALIENMON_THREAD_118 wait 0 if 023D: special_actor 1 loaded jf @ALIENMON_THREAD_118 [email protected] = Actor.Create(Mission1, #SPECIAL01, 2490.4607, 2355.7524, 4.2109) Actor.Angle([email protected]) = 276.8935 Actor.Health([email protected]) = 18000 0446: set_actor [email protected] dismemberment_possible 0 04D8: set_actor [email protected] drowns_in_water 1 0946: set_actor [email protected] actions_uninterupted_by_weapon_fire 1 060B: set_actor [email protected] decision_maker_to 32 Actor.SetWalkStyle([email protected], "DEFAULT") 03FE: set_actor [email protected] money 0 Actor.SetImmunities([email protected], 0, 0, 0, 1, 0) 0850: AS_actor [email protected] follow_actor $PLAYER_ACTOR 05E2: AS_actor [email protected] kill_actor $PLAYER_ACTOR Model.Destroy(#SPECIAL01) :ALIENMON_THREAD_264 wait 0 if Player.Defined($PLAYER_CHAR) jf @ALIENMON_THREAD_338 if not Actor.Dead([email protected]) jf @ALIENMON_THREAD_350 if 00F2: actor $PLAYER_ACTOR near_actor [email protected] radius 180.0 180.0 0 jf @ALIENMON_THREAD_338 jump @ALIENMON_THREAD_264 :ALIENMON_THREAD_338 Actor.RemoveReferences([email protected]) jump @ALIENMON_THREAD_19 :ALIENMON_THREAD_350 0A93: end_custom_thread Link to comment Share on other sites More sharing options...
Sanmodder Posted February 18, 2018 Share Posted February 18, 2018 NOTE: The game does not crash with a "stopped working" pop-up, it's the type of crash that requires a Trainer to kill the process or to restart your PC, commonly associated with something wrong with the model, I have used different models for the mod and it works, the model of the Ped that is supposed to spawn is in the game and is written in the code properly. What is the problem? // This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013 {$CLEO .cs} //-------------MAIN--------------- thread 'ALIENMON_THREAD' :ALIENMON_THREAD_19 wait 0 if Player.Defined($PLAYER_CHAR) jf @ALIENMON_THREAD_19 if $ONMISSION == 0 jf @ALIENMON_THREAD_19 if 00FE: actor $PLAYER_ACTOR sphere 0 in_sphere 2490.4607 2355.7524 4.2109 radius 75.0 75.0 75.0 jf @ALIENMON_THREAD_19 023C: load_special_actor 'aliendemon' as 1 // models 290-299 :ALIENMON_THREAD_118 wait 0 if 023D: special_actor 1 loaded jf @ALIENMON_THREAD_118 = Actor.Create(Mission1, #SPECIAL01, 2490.4607, 2355.7524, 4.2109) Actor.Angle() = 276.8935 Actor.Health() = 18000 0446: set_actor dismemberment_possible 0 04D8: set_actor drowns_in_water 1 0946: set_actor actions_uninterupted_by_weapon_fire 1 060B: set_actor decision_maker_to 32 Actor.SetWalkStyle(, "DEFAULT") 03FE: set_actor money 0 Actor.SetImmunities(, 0, 0, 0, 1, 0) 0850: AS_actor follow_actor $PLAYER_ACTOR 05E2: AS_actor kill_actor $PLAYER_ACTOR Model.Destroy(#SPECIAL01) :ALIENMON_THREAD_264 wait 0 if Player.Defined($PLAYER_CHAR) jf @ALIENMON_THREAD_338 if not Actor.Dead() jf @ALIENMON_THREAD_350 if 00F2: actor $PLAYER_ACTOR near_actor radius 180.0 180.0 0 jf @ALIENMON_THREAD_338 jump @ALIENMON_THREAD_264 :ALIENMON_THREAD_338 Actor.RemoveReferences() jump @ALIENMON_THREAD_19 :ALIENMON_THREAD_350 0A93: end_custom_thread Actor.SetWalkStyle (1 @, "DEFAULT") "DEFAULT" ??? did not work change to "player" Link to comment Share on other sites More sharing options...