Template:I TFObject: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Created page with '{{ScrollBox|title=TFObject| {{IO|SetHealth|Set the current AND maximum health. Will cause CRASH if set to 0. If object is upgraded health will scale according to new value.|param…')
 
mNo edit summary
Line 5: Line 5:
{{IO|SetTeam|Set the team the object is allied to. Does NOT change skin.|param=integer}}
{{IO|SetTeam|Set the team the object is allied to. Does NOT change skin.|param=integer}}
{{IO|skin|Set the skin the object uses. Useful in conjunction with SetTeam.|param=integer}}
{{IO|skin|Set the skin the object uses. Useful in conjunction with SetTeam.|param=integer}}
{{IO|SetBuilder}}
{{IO|SetBuilder|Set the builder of the object to the activator.}}
}}<noinclude>[[Category:FGD Templates|T]]</noinclude>
}}<noinclude>
[[Category:Input Templates|TFObject]]
</noinclude>

Revision as of 21:58, 7 June 2011

TFObject:
SetHealth <integer>
Set the current AND maximum health. Will cause CRASH if set to 0. If object is upgraded health will scale according to new value.
AddHealth <integer>
Increase health. Will NOT surpass maximum. Will NOT kill if 0 health is reached using negative values.
RemoveHealth <integer>
Decrease health. Will kill if 0 health is reached.
SetTeam <integer>
Set the team the object is allied to. Does NOT change skin.
skin <integer>
Set the skin the object uses. Useful in conjunction with SetTeam.
SetBuilder
Set the builder of the object to the activator.