Npc rocket turret: Difference between revisions
Jump to navigation
Jump to search
Note:In Portal 2, rocket turrets need to be sent a SetTarget input every time before they are turned on. The target can then be dynamically switched without deactivating the turret.
Bug:In Portal 2, rockets are spawned with a speed of 0. You will need to use a VScript to set the rocket to the correct speed. [todo tested in ?]
No edit summary |
(Use BaseEntity templates) |
||
Line 12: | Line 12: | ||
{{KV|Tripwire Mode|boolean|Makes this sentry aim in a fixed direction and not follow the target entity. It will still fire rockets when said entity crosses the beam. (Similar to [[prop_rocket_tripwire]], but allows aiming in any direction)|since=P2}} | {{KV|Tripwire Mode|boolean|Makes this sentry aim in a fixed direction and not follow the target entity. It will still fire rockets when said entity crosses the beam. (Similar to [[prop_rocket_tripwire]], but allows aiming in any direction)|since=P2}} | ||
{{KV|Tripwire Aim Target|targetname|In tripwire mode, the entity to aim at. If not specified, will aim down world angles.|since=P2}} | {{KV|Tripwire Aim Target|targetname|In tripwire mode, the entity to aim at. If not specified, will aim down world angles.|since=P2}} | ||
{{KV | {{KV BaseEntity|base=1|l4d2=1}} | ||
==Flags== | ==Flags== | ||
Line 22: | Line 20: | ||
{{IO|SetTarget|Sets the target for the rocket turret to attack.|param=string}} | {{IO|SetTarget|Sets the target for the rocket turret to attack.|param=string}} | ||
{{IO|Destroy|Sets the rocket turret to its destroyed state, freezing it in place and emitting sparks.}} | {{IO|Destroy|Sets the rocket turret to its destroyed state, freezing it in place and emitting sparks.}} | ||
{{I | {{I BaseEntity|base=1|l4d2=1|portal2=1}} | ||
{{I Toggle}} | {{I Toggle}} | ||
{{I EnableDisable}} | {{I EnableDisable}} | ||
Line 31: | Line 28: | ||
{{IO|OnLostTarget|Fired when turret's target is blocked.}} | {{IO|OnLostTarget|Fired when turret's target is blocked.}} | ||
{{IO|OnDeath|Fired after this turret finishes its destroy think and begins its death think}} | {{IO|OnDeath|Fired after this turret finishes its destroy think and begins its death think}} | ||
{{O | {{O BaseEntity}} | ||
==See also== | ==See also== |
Revision as of 12:26, 30 July 2020
Template:Portal series point It spawns an Aperture Science Rocket Turret.


Keyvalues
- Rocket Speed ([todo internal name (i)]) <float> (in all games since
)
- This is supposed to set the speed of fired rockets, but it doesn't work.
- Rocket Lifetime ([todo internal name (i)]) <float> (in all games since
)
- The rocket will automatically detonate after this number of seconds.
- Tripwire Mode ([todo internal name (i)]) <boolean> (in all games since
)
- Makes this sentry aim in a fixed direction and not follow the target entity. It will still fire rockets when said entity crosses the beam. (Similar to prop_rocket_tripwire, but allows aiming in any direction)
- Tripwire Aim Target ([todo internal name (i)]) <targetname> (in all games since
)
- In tripwire mode, the entity to aim at. If not specified, will aim down world angles.
Flags
- Disabled : [1]
Inputs
- SetTarget <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