Doors control
#1
How can I control/get door's status?
Reply
Thanks given by:
#2
Use the function GetBlockTypeMeta from cWorld. With the meta value you should be able to check the door status.
Reply
Thanks given by:
#3
(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?
Reply
Thanks given by:
#4
This should be possible with the hook HOOK_PLAYER_RIGHT_CLICK
Reply
Thanks given by:
#5
I known the hook. But it's do not work properly Sad
Reply
Thanks given by:
#6
I believe there was a cWorld:ToggleDoor function, but it seems it isn't exported yet.
Reply
Thanks given by:




Users browsing this thread: 1 Guest(s)