Author Topic: OnEnter/ExitZone Directions  (Read 373 times)

OnEnterZoneNorth
OnEnterZoneEast
OnEnterZoneSouth
OnEnterZoneWest
OnEnterZoneUp
OnEnterZoneDown

etc

Can this be done?

OnEnterZoneNorth
OnEnterZoneEast
OnEnterZoneSouth
OnEnterZoneWest
OnEnterZoneUp
OnEnterZoneDown

etc

Can this be done?

It can, but I can't code so I can't help you here.

I honestly don't know if there is an easy way of coding this IF it's possible.

Can be done with VCE, though:

OnPlayer""Zone >> Self >> VCEifValue "<var:pl:posr>" [<, >, ≤, ≥, ==] "(position desired, suggested for value to be inside the zone slightly, and use < or > to indicate that it is a very small size of the zone that you want to detect.  Will work for entering, leaving, and onInZone)"

The "r" in pos"r" is meant to indicate a replacer of either X, Y, or Z.

If you use events, I recommend you also make a separate brick with these events, and click it:

onActivate >> Self >> fireRelay
onRelay >> Self >> fireRelay
onRelay >> Self >> VCEifValue "<var:cl:BL_ID>" == "(your BL_ID)" "3 3"
onVariableTrue >> Client >> BottomPrint "Your position (X, Y, Z): <var:cl:pos>"

This will make your position appear at the bottom of the screen at all times until the relay is canceled, your player respawns and 5 seconds has not elapsed, or if the brick is deleted.  For quick eventing of these zones, it is a good idea to make sure that the bottom print is visible when eventing for quick reference.
« Last Edit: February 12, 2014, 07:48:54 AM by SWAT One »

This is possible. That is all I can say.

As far as I know this kind of functionality would need to be implemented on the model level, not just at code level.  However, I don't make models so I cannot really offer much help.