Template:I BaseTank: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Cleanup)
(Describe the behaviour of SetTargetEntity)
Line 6: Line 6:
{{IO|SetTargetPosition|World position that I should aim at|param=string}}
{{IO|SetTargetPosition|World position that I should aim at|param=string}}
{{IO|SetTargetDir|Direction to aim at.|param=vector}}
{{IO|SetTargetDir|Direction to aim at.|param=vector}}
{{IO|SetTargetEntityName|Name of entity I should follow/attack|param=string}}
{{IO|SetTargetEntityName|Set the entity I should follow/attack to the closest entity matching this name.|param=string}}
{{IO|SetTargetEntity|Entity I should follow/attack (output from other entity only  {{todo|really?}})|param=string}}
{{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}}
{{IO|ClearTargetEntity|Clear the entity I should be attacking.}}
{{IO|ClearTargetEntity|Clear the entity I should be attacking.}}
{{IO|FindNPCToManTank|Find a nearby NPC to man this func_tank.|param=string}}
{{IO|FindNPCToManTank|Find a nearby NPC to man this func_tank.|param=string}}

Revision as of 19:19, 7 September 2018

BaseTank:
Activate
Turn the tank on
Deactivate
Turn the tank off (go dormant)
SetFireRate <string>
How fast to fire (0 = don't fire)
SetDamage <string>
Set the Damage Per Bullet
SetTargetPosition <string>
World position that I should aim at
SetTargetDir <vector>
Direction to aim at.
SetTargetEntityName <string>
Set the entity I should follow/attack to the closest entity matching this name.
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.
ClearTargetEntity
Clear the entity I should be attacking.
FindNPCToManTank <string>
Find a nearby NPC to man this func_tank.
StartFindingNPCs
Start searching for NPCs to man this func_tank.
StopFindingNPCs
Stop searching for NPCs to man this func_tank.
ForceNPCOff
Force the NPC manning this func_tank (if any) to leave.
SetMaxRange <float>
Set the max range of the func_tank.


Parentname:
SetParent <string>
Move with this entity. See Entity Hierarchy (parenting).
SetParentAttachment <string>
Change this entity to attach to a specific attachment point on its parent. The entity will teleport so that the position of its root bone matches that of the attachment. Entities must be parented before being sent this input.
SetParentAttachmentMaintainOffset <string>
As above, but without teleporting. The entity retains its position relative to the attachment at the time of the input being received.
ClearParent
Removes this entity from the the movement hierarchy, leaving it free to move independently.

RenderFields:

Alpha <integer 0–255>
Sets the entity's transparency to a number from 0 (invisible) to 255 (fully visible). Requires the entity to have its rendermode set to a number other than 0.
Color <color255>
Sets an RGB color for the entity.

Shadow:

DisableShadow
Turn dynamic shadows off for this entity. Identical to applying  EF_NOSHADOW.
EnableShadow
Turn dynamic shadows on for this entity.
DisableReceivingFlashlight  (in all games since Portal 2)
This object will not receive light or shadows from projected textures.
EnableReceivingFlashlight  (in all games since Portal 2)
This object may receive light or shadows from projected textures.