Jump to content
  • 0

No zeds inside marker /trigger


Blerp

Question

Hi,

Iam making a enemy island  but i rather had not zeds there because its a remote island and the island should be cleared of zeds and should have only enemy ai bots ..

I have been freaking around but no luck this far .

Can anyone help with this ?   the use of a trigger or marker for this would be great .

kind regards.

Blerp

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

create clearzeds.sqf ( into mpmissions\yourrinstance\scripts\ )

Spoiler

if (isNil "freezone") then {
    freezone = true;
};

while {!freezone} do {
            _entity_array = (getPos player) nearEntities ["CAManBase",100];
            {
                if (_x isKindof "zZombie_Base") then {
                    deletevehicle _x;
                };
            } forEach _entity_array;
            sleep 4;
        };

open your mission.sqm into class sensors ( you know how to modify right? add one more number in class items = X  and blabla)

paste:

class Item0//modify the 0 for your last number + 1
        {
            position[]={PUT YOUR COORDS};
            a=200;
            b=200;
            activationBy="WEST";
            repeating=1;
            interruptable=1;
            age="UNKNOWN";
            name="zonefree";
           expCond="(vehicle player) in thislist;";
            expActiv="freezone = false; clearzeds = [] execVM ""scripts\clearzeds.sqf"";";
            expDesactiv="freezone = true; terminate clearzeds;  titleText [""\n\nLeaving FreeZone"", ""PLAIN DOWN"", 3];";
            class Effects
            {
            };
        };

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
  • Advertisement
  • Discord

×
×
  • Create New...