Npc rocket turret

From Valve Developer Community
Revision as of 15:00, 23 October 2011 by PluMGMK (talk | contribs) (Added See also section)
Jump to navigation Jump to search
Aperture Science Rocket Turret

Template:Portal series point It spawns an Aperture Science Rocket Turret.

Note.pngNote:In Portal 2, this entity will not aim or fire unless sent a SetTarget input while it is turned off. Its target will also need to be reset every time it is turned off.

Keyvalues

Rocket Speed ([todo internal name (i)]) <float> (in all games since Portal 2)
Speed the rocket will travel at.
Rocket Lifetime ([todo internal name (i)]) <float> (in all games since Portal 2)
The rocket will automatically detonate after this number of seconds.
Parentname:
Parent (parentname) <targetname>
Specifies a movement parent. An entity will maintain its initial offset from its parent. An attachment point can be added to the end of the name, separated by a comma.
Name (targetname) <string>[ Edit ]
The name that other entities refer to this entity by, via Inputs/Outputs or other keyvalues (e.g. parentname or target).
Also displayed in Hammer's 2D views and Entity Report.
See also:  Generic Keyvalues, Inputs and Outputs available to all entities

Pitch Yaw Roll (Y Z X) (angles) <QAngle>
This entity's orientation in the world. Pitch is rotation around the Y axis, yaw is the rotation around the Z axis, roll is the rotation around the X axis.

Inputs

SetTarget <stringRedirectInput/string>
Sets the target for this turret to attack.
Destroy
Sets this turret to it's destroyed state.
Parentname:
SetParent <stringRedirectInput/string>
Move with this entity. See Entity Hierarchy (parenting).
SetParentAttachment <stringRedirectInput/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 <stringRedirectInput/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.
Toggle:
Toggle
Toggle the enabled/disabled status of this entity.

EnableDisable:

Enable / Disable
Enable/disable this entity from performing its task. It might also disappear from view.

Outputs

OnFoundTarget
Fired when the rocket turret finds an unobstructed target.
OnLostTarget
Fired when turret's target is blocked.
OnDeath
Fired after this turret finishes its destroy think and begins its death think


See also