Template:I EmpBuilding: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(-cleanup)
m (→‎top: Substituted IO templates)
 
Line 5: Line 5:
</noinclude><!--
</noinclude><!--
-->{{minititle|EmpBuilding}}
-->{{minititle|EmpBuilding}}
{{IO|SetHealth|param=integer|Sets the health of the building, clamped between 0 and the building's maximum health.}}
{{I|SetHealth|param=integer|Sets the health of the building, clamped between 0 and the building's maximum health.}}
{{IO|Destroy|param=void|Set the health of the building to 0.}}
{{I|Destroy|param=void|Set the health of the building to 0.}}
{{IO|RecycleStartDuration|param=integer|Begin the recycle process, with the countdown set to the given number of seconds.}}
{{I|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.}}
{{I|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 [[activator]] is a player, give them points for it.}}
{{I|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.}}
{{I|SabotageEnd|param=void|Mark this building as no longer sabotaged.}}

Latest revision as of 12:55, 21 April 2025

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.