Hello developers, i've lost like 2 hours trying to figure out how to open a portal once a boss respawns, and how to close it once it dies. I've tried both Lua and Obelisk ways.
With lua i tried this comand:
- Mob:LuaUpdateInsZonePortal ( 1001, 0 )
The one used by the CS's guards to open the portal in map 65, but how you probably know by default it's not working, at least, not on ep 5.4 servers, so i tried to edit a bit the comand, trying to understand what those numbers (1001, 0) means, so the 1001 stands for the Portal ID, the one it should open, still didn't get an explain for the 0, but following the comand syntax, i was thinking the script update the portal ID from 1001 to in this case 0. so i tried it with different combinations like (1001, 1) or even (2, 1) but nothing, nothing happens, if my theory is right, it doesn't update the value, or probably i just misunderstood the vules concept!
The second way i tried is with the Obelisk comands, following Freezing Mirage example, that open the portal for CT once it dies.
- [bothmob_002, (20, 2, 43200, (20,1002))] = (454.09, 1.5, 191.76),(1975, 1978)
This one is kinda weird too... 20 stays for the Map ID where the mob has to respawn, then we go to this 2, i have no idea what it means, but i noticed that editing it to for example 1, Mirage doesn't spawn after we will the Old, 43200 is the respawn time and then (20,1002) 20 should be again the Map ID, but this time where the portal is, and 1002 should be the portal ID. i've tried to open a portal situated on different map than the one where the mob is by editing it like [bothmob_002, (20, 2, 43200, (0,1002))] but then the mob doesn't respawn anymore aswell, so probably another misunderstood there too. Something should be written somewhere, we're just telling him the MapID and the Portal ID in this case, why does he open the portal? is editing the ps_game the only way to solve it? Or is there any way to Open a portal once a boss spawns and close it once it dies? basically, keep a map opened only if the boss is UP!






