npc_rocket_turret

From Valve Developer Community
Revision as of 12:15, 4 January 2024 by WisdomBot (talk | contribs) (Updated old entity format to {{this is a}}. This action was perfomed by a bot.)
Jump to navigation Jump to search
Aperture Science Rocket Turret
Turret is firing

npc_rocket_turret is an e0 available in Portal series Portal series. It is an Aperture Science Rocket Turret, which will track a single entity and fire rockets at it. In Portal 1 the target defaults to the SP player, but it can be overridden with SetTarget inputs. Template:ModernBug

Note.pngNote:In multiplayer, rocket turrets will not target anyone by default (immediately seizing up when turned on). The target must be set manually with SetTarget inputs.

Template:ModernBug

Keyvalues

Rocket Speed ([todo internal name (i)]) <float> (in all games since Portal 2)
Speed the rocket will travel at.
Icon-Bug.pngBug:Doesn't work, as stated above.  [todo tested in ?]
Rocket Lifetime ([todo internal name (i)]) <float> (in all games since Portal 2)
The rocket will automatically detonate after this number of seconds.
Tripwire Mode ([todo internal name (i)]) <boolean> (in all games since Portal 2)
Makes this sentry aim in a fixed direction and not follow the target entity. When any entity crosses the beam (regardless of if they are the target), a rocket is fired instantly with no lock-on time. (Similar to prop_rocket_tripwire, but allows aiming in any direction)
Tripwire Aim Target ([todo internal name (i)]) <targetname> (in all games since Portal 2)
In tripwire mode, the entity to aim at. If not specified, will aim down world angles.


Flags

Disabled : [1]

Inputs

SetTarget <stringRedirectInput/string>
Sets the target for the rocket turret to attack.
Destroy
Sets the rocket turret to its destroyed state, freezing it in place and emitting sparks.
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