Cuberite Forum
Doors control - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Plugins (https://forum.cuberite.org/forum-1.html)
+--- Forum: Plugin Discussion (https://forum.cuberite.org/forum-8.html)
+--- Thread: Doors control (/thread-2191.html)



Doors control - DrMasik - 10-29-2015

How can I control/get door's status?


RE: Doors control - Seadragon91 - 10-29-2015

Use the function GetBlockTypeMeta from cWorld. With the meta value you should be able to check the door status.


RE: Doors control - DrMasik - 10-29-2015

(10-29-2015, 02:55 AM)Seadragon91 Wrote: Use the function GetBlockTypeMeta from cWorld. With the meta value you should be able to check the door status.

Thank you.
And how can I enable/disable open doors by player?


RE: Doors control - Seadragon91 - 10-29-2015

This should be possible with the hook HOOK_PLAYER_RIGHT_CLICK


RE: Doors control - DrMasik - 10-29-2015

I known the hook. But it's do not work properly Sad


RE: Doors control - NiLSPACE - 10-29-2015

I believe there was a cWorld:ToggleDoor function, but it seems it isn't exported yet.