Template:I EmpBuilding: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Fix broken link)
mNo edit summary
Line 9: Line 9:
{{IO|RecycleStartDuration|param=integer|Begin the recycle process, with the countdown set to the given number of seconds.}}
{{IO|RecycleStartDuration|param=integer|Begin the recycle process, with the countdown set to the given number of seconds.}}
{{IO|RecycleCancel|param=void|Cancel the recycling process, returning the building to a functional state.}}
{{IO|RecycleCancel|param=void|Cancel the recycling process, returning the building to a functional state.}}
{{IO|SabotageStart|param=void|Mark this building as sabotaged. If the [[Targetname#Keywords|activtor]] is a player, give them points for it.}}
{{IO|SabotageStart|param=void|Mark this building as sabotaged. If the [[activator]] is a player, give them points for it.}}
{{IO|SabotageEnd|param=void|Mark this building as no longer sabotaged.}}
{{IO|SabotageEnd|param=void|Mark this building as no longer sabotaged.}}

Revision as of 21:14, 9 December 2023

This template is our holder for all inputs that are assigned through EmpBuilding.


EmpBuilding:

SetHealth <integer>
Sets the health of the building, clamped between 0 and the building's maximum health.
Destroy <void>
Set the health of the building to 0.
RecycleStartDuration <integer>
Begin the recycle process, with the countdown set to the given number of seconds.
RecycleCancel <void>
Cancel the recycling process, returning the building to a functional state.
SabotageStart <void>
Mark this building as sabotaged. If the activator is a player, give them points for it.
SabotageEnd <void>
Mark this building as no longer sabotaged.