AlbertWesker Posted January 17, 2021 Share Posted January 17, 2021 I have a zombie script installed but it crashes when i go inside a building, is it possible to write it in a way that the zombie mod is disabled when i enter a interior? This is the zombie mod i use: :NONAME script_name 'NONAME' 060A: create_decision_maker_type 5 store_to [email protected] // decision\allowed\m_.ped files 0708: reset_decision_maker [email protected] event 31 0708: reset_decision_maker [email protected] event 36 0708: reset_decision_maker [email protected] event 9 0709: set_decision_maker [email protected] on_event 36 taskID 1000 respect 0.0 hate 100.0 like 0.0 dislike 0.0 in_car 1 on_foot 1 // see *.ped files 0709: set_decision_maker [email protected] on_event 9 taskID 1000 respect 0.0 hate 100.0 like 0.0 dislike 100.0 in_car 1 on_foot 1 // see *.ped files 0709: set_decision_maker [email protected] on_event 31 taskID 200 respect 100.0 hate 100.0 like 100.0 dislike 100.0 in_car 1 on_foot 1 // see *.ped files 077E: get_active_interior_to [email protected] :NONAME_146 wait 0 if Player.Defined(0) jf @NONAME_507 [email protected] = 0 :NONAME_172 if [email protected]([email protected],12i) == 1 jf @NONAME_270 if or Actor.Dead([email protected]([email protected],12i)) 8104: not actor $PLAYER_ACTOR near_actor [email protected]([email protected],12i) radius 150.0 150.0 150.0 sphere 0 jf @NONAME_263 Actor.RemoveReferences([email protected]([email protected],12i)) [email protected]([email protected],12i) = 0 :NONAME_263 jump @NONAME_486 :NONAME_270 wait 0 0208: [email protected] = random_float_in_ranges -60.0 60.0 0208: [email protected] = random_float_in_ranges -60.0 60.0 04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset [email protected] [email protected] 0.0 092E: get_water_height_at [email protected] [email protected] ignore_waves 0 store_to [email protected] if and 80FE: not actor $PLAYER_ACTOR sphere 0 in_sphere [email protected] [email protected] [email protected] radius 10.0 10.0 10.0 80C2: not sphere_onscreen [email protected] [email protected] [email protected] radius 5.0 not [email protected] >= 0.0 jf @NONAME_417 jump @NONAME_424 :NONAME_417 jump @NONAME_270 :NONAME_424 0376: [email protected]([email protected],12i) = create_random_actor_at [email protected] [email protected] -100.0 NONAME_514() 060B: set_actor [email protected]([email protected],12i) decision_maker_to [email protected] 05E2: AS_actor [email protected]([email protected],12i) kill_actor $PLAYER_ACTOR [email protected]([email protected],12i) = 1 :NONAME_486 [email protected] += 1 [email protected] > 11 jf @NONAME_172 :NONAME_507 jump @NONAME_146 :NONAME_514 0209: [email protected] = random_int_in_ranges 0 3 if [email protected] == 0 jf @NONAME_548 jump @NONAME_591 :NONAME_548 if [email protected] == 1 jf @NONAME_573 jump @NONAME_591 :NONAME_573 if [email protected] == 2 jf @NONAME_591 :NONAME_591 0332: set_actor [email protected]([email protected],12i) bleeding 1 return Link to comment Share on other sites More sharing options...
Strs Posted February 22, 2021 Share Posted February 22, 2021 077E: get_active_interior_to $interior $interior == 0 //o is when player is not in interior AlbertWesker 1 Link to comment Share on other sites More sharing options...
AlbertWesker Posted February 27, 2021 Author Share Posted February 27, 2021 On 2/22/2021 at 5:38 AM, Strs said: 077E: get_active_interior_to $interior $interior == 0 //o is when player is not in interior Thanks man, i was actually able to fix it! Link to comment Share on other sites More sharing options...
Strs Posted February 28, 2021 Share Posted February 28, 2021 you welcome RyanDri3957V and AlbertWesker 1 1 Link to comment 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