Template:O Door: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m ({{activator}})
No edit summary
 
(14 intermediate revisions by 6 users not shown)
Line 1: Line 1:
* '''OnClose'''
{{minititle|BaseDoor}}
: Fired when the door is told to close. {{activator|opener (sometimes = [[Targetname|!this]]}}
{{O|OnClose| activator = the door itself if closed by player, if closed by Close input the activator of the input is used
* '''OnOpen'''
|Fired when the door starts to close.}}
: Fired when the door is told to open. {{activator|opener (sometimes = [[Targetname|!this]]}}
{{O|OnOpen| activator = the door itself if opened by player, if opened by Open or OpenAwayFrom input the activator of the input is used
* '''OnFullyOpen'''
|Fired when the door starts to open.
: Fired when the door reaches the fully open position. {{activator|user}}
{{note|OnOpen/OnClose outputs fire twice if initiated by input. First time !activator is the activator of the input second time !activator is equal to the door itself.}}}}
* '''OnFullyClosed'''
{{O|OnFullyClosed| activator = player that closed the door
: Fired when the door reaches the fully closed position. {{activator|user}}
|Fired when the door finishes closing. Reversed if ''Start Open'' flag is set.}}
* '''OnBlockedClosing'''
{{O|OnFullyOpen|ac-is-this=1|Fired when the door finishes opening. Reversed if ''Start Open'' flag is set.}}
: Fired when the door is blocked while closing. {{activator|blocker}}
{{O|OnBlockedClosing| activator = entity that blocks the door
* '''OnBlockedOpening'''
|Fired when the door has been blocked from closing.}}
: Fired when the door is blocked while opening. {{activator|blocker}}
{{O|OnBlockedOpening| activator = entity that blocks the door
* '''OnUnblockedClosing'''
|Fired when the door has been blocked from opening.}}
: Fired when the door is unblocked while closing.
{{O|OnUnblockedClosing|ac-is-this=1|Fired when the door is no longer blocked from closing.}}
* '''OnUnblockedOpening'''
{{O|OnUnblockedOpening|ac-is-this=1|Fired when the door is no longer blocked from opening.}}
: Fired when the door is unblocked while opening.
{{O|OnLockedUse|activator = caller = the player pressing use|caller=hide|Fired when the player tries to open the door but fails because it is locked.}}<noinclude>
[[Category:Output Templates|Door]]
</noinclude>

Latest revision as of 01:13, 26 April 2025

BaseDoor:

OnClose
!activator = the door itself if closed by player, if closed by Close input the activator of the input is used
!caller = this entity
Fired when the door starts to close.
OnOpen
!activator = the door itself if opened by player, if opened by Open or OpenAwayFrom input the activator of the input is used
!caller = this entity
Fired when the door starts to open.
Note.pngNote:OnOpen/OnClose outputs fire twice if initiated by input. First time !activator is the activator of the input second time !activator is equal to the door itself.
OnFullyClosed
!activator = player that closed the door
!caller = this entity
Fired when the door finishes closing. Reversed if Start Open flag is set.
OnFullyOpen
!activator = !caller = this entity
Fired when the door finishes opening. Reversed if Start Open flag is set.
OnBlockedClosing
!activator = entity that blocks the door
!caller = this entity
Fired when the door has been blocked from closing.
OnBlockedOpening
!activator = entity that blocks the door
!caller = this entity
Fired when the door has been blocked from opening.
OnUnblockedClosing
!activator = !caller = this entity
Fired when the door is no longer blocked from closing.
OnUnblockedOpening
!activator = !caller = this entity
Fired when the door is no longer blocked from opening.
OnLockedUse
!activator = caller = the player pressing use
Fired when the player tries to open the door but fails because it is locked.