Template:I EmpBuilding: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Include base animating and base entity inputs in this template as well, to make later cleanup easier.)
(-cleanup)
Line 11: Line 11:
{{IO|SabotageStart|param=void|Mark this building as sabotaged. If the [[activator]] 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.}}
{{I BaseAnimating|tf2=|portal2=}}
{{I BaseEntity|base=1}}

Revision as of 13:26, 2 July 2024

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.