Author Topic: OnZoneEmpty  (Read 314 times)

Basically /title kinda like how we have InZone, something opposite to that, where if there's no one in the zone it can trigger an event.

Example

OnZoneEmpty - NamedBrick[Bot] - SetBotType - None

So if there's no one in the zone a bot wouldn't spawn, and that's just an example I wouldn't use it for that but for something else. I would appreciate it a lot thanks in advance.

Can't you use onPlayerLeave for the exact same purpose?
If you want to be exact, you can use VCE and count when players enter/leave, and each time do
if variable == 0
onvariabletrue setbottype none
onvariable false setbottype blockhead

what kind of trigger would you want? whenever somebody leaves the zone/on a loop?

you can do something like this with
onplayerleavezone>namedbrick[bot]>setbottype[none] - delayed 500+ or so
onplayerleavezone>self>setzone[whatever the zone is supposed to be, center for zone bricks(?)]
onplayerenterzone>self>cancelevents

when a player leaves the zone it will start a schedule to change the bot, and refresh the zone
if somebody is still in the zone they'll trigger the enterzone event and cancel changing the bot

Thanks for the help guys I found a way to do it, Loooocking.