CFrobDoorHandle: Difference between revisions

From The DarkMod Wiki
Jump to navigationJump to search
(New page: == CFrobDoorHandle == The corresponding entityDef is '''atdm:mover_door_handle'''. Door handles can be attached to doors via '''bind''' and are responsible of triggering the doors in the ...)
 
m (categorised)
 
Line 15: Line 15:
* <no special methods>
* <no special methods>


{{coding}}{{editing}}
{{sdk}} {{editing}}

Latest revision as of 07:44, 30 June 2008

CFrobDoorHandle

The corresponding entityDef is atdm:mover_door_handle.

Door handles can be attached to doors via bind and are responsible of triggering the doors in the correct moment. Whenever a door with an attached handle is frobbed, it's the handle that receives the command and starts moving. When the handle reaches its "open" position, the open command is routed back to the door. There is no restriction concerning the movement type of door handles, they can both rotate or translate.

Spawnargs

  • snd_tap_locked (sound shader) Called when the handle starts to move and its door is locked.
  • snd_tap_default (sound shader) Called when the handle starts to move and its door is unlocked.

Script Events

scriptEvent void Tap();
Call this to make the handle move and subsequently trigger the door.

C++ Methods and Events

  • <no special methods>