Multiple questions - Scripting help
-
Heya, its been a bit since I did some modding
But I am planning on making my own minigame and I have a few questions/help on this. I decided to make this one post since I dont want to spam the forums again lmao.-
Is it possible to stop zombies from spawning (and later on, allow em)
-
Is it possible to prevent doors from being opened? (Being bought, opened by afterlife, etc)
-
If I teleport a player in an area where there is no doors opened, will zombies spawn in it?
-
Is it possible to prevent people from going into Afterlife if I were to use Mob of the Dead?
If these are possible, what do I put in as the code for it?
Obv im not looking for someone to answer ALL of these lmao. Just answer whatever you can that best helps me make the mode I have planned. Thanks!
-
-
techboy04gaming Everything is possibile
-
techboy04gaming Answer for 3rd question. If you teleport a player in an area where players have not gone yet and doors to that location are closed they will die because playable area zones are not connected to that location (doors must be opened). You can bypass this by disabling the "volume death barrier a.k.a" player_outside_of_playable_area by changing it's value to false;
-
techboy04gaming
@Dev-Ultimateman said in Multiple questions - Scripting help:techboy04gaming Answer for 3rd question. If you teleport a player in an area where players have not gone yet and doors to that location are closed they will die because playable area zones are not connected to that location (doors must be opened). You can bypass this by disabling the "volume death barrier a.k.a" player_outside_of_playable_area by changing it's value to false;
While changing that variable to false does allow for players to enter that area without dying, it doesn't activate the zone (depending on the map) and to get around this you can activate specific zones by modifying _zm_zonemgr.gsc
JezuzLizard's recompileable scripts help out with anything you're wanting to do in the game.
-
techboy04gaming the afterlife door part is easy, just check if player is in after life the call for the function
afterlife_doors_close
you want to add this in the base code, if you just call the function via maps\mp\zombies blah blah ::function it will cause issues on every other map