CFrobButton: Difference between revisions

From The DarkMod Wiki
Jump to navigationJump to search
New page: == CFrobButton == The corresponding entityDef is '''atdm:mover_button'''. A button is a simple two-state button to trigger things like lights or other movers. A button specialises the fr...
 
m categorised
 
Line 18: Line 18:
* <no special events>
* <no special events>


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

Latest revision as of 07:44, 30 June 2008

CFrobButton

The corresponding entityDef is atdm:mover_button.

A button is a simple two-state button to trigger things like lights or other movers.

A button specialises the frobmover so that it only fires when it’s fully “pressed”. The default button snaps back to its original position after being pressed, but this behaviour can be overriden by the mapper, of course.

Buttons can also be activated by impulses, e.g. by shooting arrows at them.

Spawnargs

  • <no special spawnargs>

Script Events

scriptEvent void Operate();
Call this to "press" the button.

C++ Methods and Events

  • <no special events>