Okay I am working on the next step of my easter egg and i wanted to know what is the command to activate a zone via script? I know the easiest way would be to make a trigger with the enter_zone kvp but thats not really possible since im having it where they have to pick up something, carry it somewhere else, then the door will open, so theres like 3-4 triggers and it would be hard to make it like that.
level.zones[ zone_name ].is_enabled = false; // Does the zone need to be evaluated? level.zones[ zone_name ].is_occupied = false; // Is the zone occupied by a player? level.zones[ zone_name ].is_active = false; // Are the spawners currently enabled for spawning?
But it might just be easier to give the trigger the KVP's instead.
Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms.
Okay I am working on the next step of my easter egg and i wanted to know what is the command to activate a zone via script? I know the easiest way would be to make a trigger with the enter_zone kvp but thats not really possible since im having it where they have to pick up something, carry it somewhere else, then the door will open, so theres like 3-4 triggers and it would be hard to make it like that.
The trigger just sets a flag. Everything deadra just posted could be done with one line
The trigger just sets a flag. Everything deadra just posted could be done with one line
Code Snippet
Plaintext
flag_set("enter_zone_name_flag");
i tried writing
Code Snippet
Plaintext
flag_set("enter_zone1");
but after it gets to that part of the script the game lags for a couple of seconds and then when i walk into that zone the rounds start skipping like its not been activated
Has the ability to issue warnings to users, edit and remove posts from the forum and to move topics to other boards. Upholds the rules of the forum. Moderates Chat Rooms.
but after it gets to that part of the script the game lags for a couple of seconds and then when i walk into that zone the rounds start skipping like its not been activated
You probably tried to set the flag before it had been initialized by the dlc3_zone_setup() function in your map gsc.