Pie015 Posted October 17, 2010 Share Posted October 17, 2010 (edited) My game crashes when I go into the sphere where it spawns catalina Any help? {$VERSION 3.1.0027}{$CLEO .cs}//------------MAIN------------0000::MINUS1thread 'MISSION'// Load modelsModel.Load(#CHEETAH)Model.Load(#BAT)023C: load_special_actor 'CAT' as 1 // models 290-299023C: load_special_actor 'SWEET' as 2 // models 290-299 038B: load_requested_models :1wait 0if orModel.Available(#BAT)Model.Available(#CHEETAH)023D: special_actor 1 loaded023D: special_actor 2 loaded else_jump @1:20@ = Car.Create(#CHEETAH, 2460.7007, -1658.911, 13.3047)Car.Angle(0@) = 269.76140186: 1@ = create_marker_above_car 0@0165: set_marker 1@ color_to 20249: release_model #CHEETAHrepeatwait 0 msuntil Actor.InCar($PLAYER_ACTOR, 0@)01B2: give_actor $PLAYER_ACTOR weapon 5 ammo 1000000 // Load the weapon model before using this01B9: set_actor $PLAYER_ACTOR armed_weapon_to 5 0164: disable_marker [email protected](0@):3wait 0if orActor.Dead($PLAYER_ACTOR)0119: car 0@ wrecked 004D: jump_if_false @5wait 0 ms00BA: show_text_styled GXT 'M_FAIL' time 5000 style 1 // ~r~MISSION FAILED!~w~jump @MINUS1:52@ = Marker.CreateIconAndSphere(0, 2271.6628, -1653.745, 15.1924):6repeatwait 0 msuntil 01AE: car 0@ sphere 0 near_point 2271.6628 -1653.745 radius 3.0 3.0 stopped Marker.Disable(2@)10@ = Actor.Create(CivFemale, #SPECIAL01, 2271.6216, -1625.9585, 15.2753)Actor.Angle(10@) = 182.1955Actor.RemoveReferences(10@)Marker.CreateAboveActor(4@, 10@)01B2: give_actor 10@ weapon 5 ammo 1000000 // Load the weapon model before using this 01B9: set_actor 10@ armed_weapon_to 505E2: AS_actor 10@ kill_actor $PLAYER_ACTOR:7wait 0if or Actor.Dead($PLAYER_ACTOR)0119: car 0@ wrecked 004D: jump_if_false @8wait 0 ms00BA: show_text_styled GXT 'M_FAIL' time 5000 style 1 //jump @MINUS1:8repeatwait 0 msuntil Actor.Dead(10@)Actor.DestroyInstantly(10@)Marker.Disable(4@):MINUS9Actor.StoreDeadActorPos(10@, 11@, 12@, 13@):914@ = Pickup.Create(1210, 15, 11@, 12@, 13@)repeatwait 0 msuntil Pickup.Picked_up(14@)Pickup.Destroy(14@)15@ = Marker.CreateIconAndSphere(0, 2490.5491, -1666.1909, 13.3437)repeatwait 0 msuntil 01AE: car 0@ sphere 0 near_point 2490.5491 -1666.1909 radius 3.0 3.0 stoppedMarker.Disable(15@)select_interior 1Actor.PutAt($PLAYER_ACTOR, 222.8378, 1289.4766, 1082.1328)Actor.Angle($PLAYER_ACTOR) = 359.6890860: link_actor $PLAYER_ACTOR to_interior 116@ = Actor.Create(CivMale, #SPECIAL02, 222.67, 1290.9432, 1082.1406)Actor.Angle(16@) = 181.424Actor.RemoveReferences(16@):1004ED: load_animation "GANGS"if04EE: animation "GANGS" loaded jf @1002A3: enable_widescreen 1Player.CanMove($PLAYER_CHAR) = False0A1D: AS_actor 16@ rotate_to_and_look_at_actor $PLAYER_ACTOR0A1D: AS_actor $PLAYER_ACTOR rotate_to_and_look_at_actor 16@wait 2000 0605: actor $PLAYER_ACTOR perform_animation_sequence "PRTIAL_GNGTLKA" IFP_file "GANGS" 4.0 loop 0 0 0 0 time -1 // versionA0605: actor 16@ perform_animation_sequence "PRTIAL_GNGTLKA" IFP_file "GANGS" 4.0 loop 0 0 0 0 time -1 // versionA04EF: release_animation "GANGS"wait 300002A3: enable_widescreen 0Player.CanMove($PLAYER_CHAR) = Trueselect_interior 0Actor.PutAt($PLAYER_ACTOR, 2512.8687, -1689.4982, 13.5503)Actor.Angle($PLAYER_ACTOR) = 49.65430860: link_actor $PLAYER_ACTOR to_interior 0Actor.DestroyInstantly(16@)Car.Destroy(0@)0394: play_music 101E3: show_text_1number_styled GXT 'M_PASS' number 200 time 5000 style 1 // NEW HIGH SCORE!!~n~~w~~1~Player.Money($PLAYER_CHAR) += 2000249: release_model #BAT0249: release_model #CHEETAH0296: unload_special_actor 1 0296: unload_special_actor 20555: remove_weapon 5 from_actor $PLAYER_ACTORjump @MINUS1 Edited October 17, 2010 by Pie015 Link to comment https://gtaforums.com/topic/461205-game-crashed-when-creating-actor/ Share on other sites More sharing options...
yair1221 Posted October 17, 2010 Share Posted October 17, 2010 :1wait 0if orModel.Available(#BAT)Model.Available(#CHEETAH)023D: special_actor 1 loaded023D: special_actor 2 loadedelse_jump @1 try using 'if and' but i dont think its the problem... Car.RemoveReferences(0@) :3wait 0if orActor.Dead($PLAYER_ACTOR)0119: car 0@ wrecked004D: jump_if_false @5wait 0 ms00BA: show_text_styled GXT 'M_FAIL' time 5000 style 1 // ~r~MISSION FAILED!~w~jump @MINUS1 if you removed the car's handle, how do you expect the game to check if you are in it? it doesnt recognize it but this seems to be the problem: Actor.RemoveReferences(10@)Marker.CreateAboveActor(4@, 10@)01B2: give_actor 10@ weapon 5 ammo 1000000 // Load the weapon model before using this01B9: set_actor 10@ armed_weapon_to 505E2: AS_actor 10@ kill_actor $PLAYER_ACTOR again, same mistake, remove the Actor.RemoveReferences(10@) and Car.RemoveReferences(0@) Link to comment https://gtaforums.com/topic/461205-game-crashed-when-creating-actor/#findComment-1060165600 Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now