| Blockland Forums > Suggestions & Requests |
| OnEnter/ExitZone Directions |
| (1/1) |
| Crispy_:
OnEnterZoneNorth OnEnterZoneEast OnEnterZoneSouth OnEnterZoneWest OnEnterZoneUp OnEnterZoneDown etc Can this be done? |
| Ducky duck:
--- Quote from: Crispy_ on February 11, 2014, 05:36:14 PM ---OnEnterZoneNorth OnEnterZoneEast OnEnterZoneSouth OnEnterZoneWest OnEnterZoneUp OnEnterZoneDown etc Can this be done? --- End quote --- It can, but I can't code so I can't help you here. |
| SWAT One:
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. |
| Advanced Bot:
This is possible. That is all I can say. |
| Nexus:
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. |
| Navigation |
| Message Index |