Template:I BaseTank: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Describe the behaviour of SetTargetEntity)
m (→‎top: Substituted IO templates)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{ScrollBox|title=BaseTank|
{{ {{PAGENAME}} |startcollapsed=0}}
{{IO|Activate|Turn the tank on}}
<includeonly>
{{IO|Deactivate|Turn the tank off (go dormant)}}
 
{{IO|SetFireRate|How fast to fire (0 {{=}} don't fire)|param=string}}
<onlyinclude>{{Expand|title=BaseTank inputs|startcollapsed={{{startcollapsed|1}}}|
{{IO|SetDamage|Set the Damage Per Bullet|param=string}}
{{I|Activate|Turn the tank on.}}
{{IO|SetTargetPosition|World position that I should aim at|param=string}}
{{I|Deactivate|Turn the tank off (go dormant).}}
{{IO|SetTargetDir|Direction to aim at.|param=vector}}
{{I|SetFireRate|How fast to fire (0 {{=}} don't fire).|param=float}}
{{IO|SetTargetEntityName|Set the entity I should follow/attack to the closest entity matching this name.|param=string}}
{{I|SetDamage|Set the '''Damage Per Bullet''' keyvalue.|param=integer}}
{{IO|SetTargetEntity|Set the entity I should follow/attack to the passed in entity. This requires an output which passes an entity through the output.|param=entity}}
{{I|SetTargetPosition|World position (coordinates) that to aim at|param=vector}}
{{IO|ClearTargetEntity|Clear the entity I should be attacking.}}
{{I|SetTargetDir|Direction (pitch yaw roll) to aim at.|param=vector}}
{{IO|FindNPCToManTank|Find a nearby NPC to man this func_tank.|param=string}}
{{I|SetTargetEntityName|"Set the entity I should follow/attack to the closest entity matching this name."{{clarify}}|param=targetname}}
{{IO|StartFindingNPCs|Start searching for NPCs to man this func_tank.}}
{{I|SetTargetEntity|"Set the entity I should follow/attack to the passed in entity. This requires an output which passes an entity through the output."{{clarify}}|param=entity}}
{{IO|StopFindingNPCs|Stop searching for NPCs to man this func_tank.}}
{{I|ClearTargetEntity|Clear the entity memory of any targets it was told to attack.}}
{{IO|ForceNPCOff|Force the NPC manning this func_tank (if any) to leave.}}
{{I|FindNPCToManTank|Find a nearby capable NPC to man this tank.|param=string}}
{{IO|SetMaxRange|Set the max range of the func_tank.|param=float}}
{{I|StartFindingNPCs|Start searching for capable NPCs to man this tank.}}
{{I Targetname}}
{{I|StopFindingNPCs|Stop searching for capable NPCs to man this tank.}}
{{I Parentname}}
{{I|ForceNPCOff|Force the NPC manning this tank (if any) to leave.}}
{{I RenderFields}}
{{I|SetMaxRange|Set the max range of the tank. {{confirm|Maximum distance a shot can go?}}|param=float}}
{{I Shadow}}
}}</onlyinclude>
}}<noinclude>
 
</includeonly>
[[Category:Input Templates|BaseTank]]
[[Category:Input Templates|BaseTank]]
</noinclude>

Latest revision as of 12:53, 21 April 2025

BaseTank inputs
Activate
Turn the tank on.
Deactivate
Turn the tank off (go dormant).
SetFireRate <float>
How fast to fire (0 = don't fire).
SetDamage <integer>
Set the Damage Per Bullet keyvalue.
SetTargetPosition <vector>
World position (coordinates) that to aim at
SetTargetDir <vector>
Direction (pitch yaw roll) to aim at.
SetTargetEntityName <targetname>
"Set the entity I should follow/attack to the closest entity matching this name."[Clarify]
SetTargetEntity <entity>
"Set the entity I should follow/attack to the passed in entity. This requires an output which passes an entity through the output."[Clarify]
ClearTargetEntity
Clear the entity memory of any targets it was told to attack.
FindNPCToManTank <string>
Find a nearby capable NPC to man this tank.
StartFindingNPCs
Start searching for capable NPCs to man this tank.
StopFindingNPCs
Stop searching for capable NPCs to man this tank.
ForceNPCOff
Force the NPC manning this tank (if any) to leave.
SetMaxRange <float>
Set the max range of the tank.
Confirm:Maximum distance a shot can go?