|
Endstar LUA API Documentation
|
Base type that rotates to face a direction or object. More...
Public Member Functions | |
| void | Shoot (Context instigator) |
| Trigger a scan to check if a valid target is in front. Will trigger the "OnHit" event depending on the result of the shot. | |
| void | EnableTrackingLaser (Context instigator) |
| Enable visual tracking laser for this sentry. | |
| void | DisableTrackingLaser (Context instigator) |
| Disable visual tracking laser for this sentry. | |
| void | SetDamagedState (Context instigator, int value) |
| Sets the damage state using SentryDamageLevel as the value. | |
| void | SetFollowTarget (Context instigator, Context target) |
| Set the target that the Sentry will face towards. | |
| void | SetLookDirection (Context instigator, float x, float y) |
| Set the direction for the Sentry to rotate towards. Setting this removes any active follow target. | |
| float | GetLookPitch () |
| float | GetLookYaw () |
| void | SetRotationSpeed (Context instigator, float value) |
| float | GetRotationSpeed () |
| void | SetShootDistance (Context instigator, float value) |
| Set how far the sentry will scan in front of it for a valid target. | |
| float | GetShootDistance () |
| void | LookForward (Context instigator) |
| Look forward and clear any active follow target. Shorthand for SetLookDirection(instigator, 0,0). | |
| void | LookBackward (Context instigator) |
| Look backward and clear any active follow target. Shorthand for SetLookDirection(instigator, 0,180). | |
| void | LookUp (Context instigator) |
| Look up and clear any active follow target. | |
| void | LookDown (Context instigator) |
| Look down and clear any active follow target. | |
| void | LookLeft (Context instigator) |
| Look left and clear any active follow target. | |
| void | LookRight (Context instigator) |
| Look right and clear any active follow target. | |
Base type that rotates to face a direction or object.
| void DisableTrackingLaser | ( | Context | instigator | ) |
Disable visual tracking laser for this sentry.
| instigator | The source context triggering this change |
| void EnableTrackingLaser | ( | Context | instigator | ) |
Enable visual tracking laser for this sentry.
| instigator | The source context triggering this change |
| float GetLookPitch | ( | ) |
| float GetLookYaw | ( | ) |
| float GetRotationSpeed | ( | ) |
| float GetShootDistance | ( | ) |
| void LookBackward | ( | Context | instigator | ) |
Look backward and clear any active follow target. Shorthand for SetLookDirection(instigator, 0,180).
| instigator | The source context of this change. |
| void LookDown | ( | Context | instigator | ) |
Look down and clear any active follow target.
| instigator | The source context of this change. |
| void LookForward | ( | Context | instigator | ) |
Look forward and clear any active follow target. Shorthand for SetLookDirection(instigator, 0,0).
| instigator | The source context of this change. |
| void LookLeft | ( | Context | instigator | ) |
Look left and clear any active follow target.
| instigator | The source context of this change. |
| void LookRight | ( | Context | instigator | ) |
Look right and clear any active follow target.
| instigator | The source context of this change. |
| void LookUp | ( | Context | instigator | ) |
Look up and clear any active follow target.
| instigator | The source context of this change. |
| void SetDamagedState | ( | Context | instigator, |
| int | value ) |
Sets the damage state using SentryDamageLevel as the value.
| instigator | The source context of this change. |
| value | The target damage state, using SentryDamageLevel |
Set the target that the Sentry will face towards.
| instigator | The source context of this change. |
| target | The target context to face. |
| void SetLookDirection | ( | Context | instigator, |
| float | x, | ||
| float | y ) |
Set the direction for the Sentry to rotate towards. Setting this removes any active follow target.
| instigator | |
| x | Target pitch |
| y | Target yaw |
| void SetRotationSpeed | ( | Context | instigator, |
| float | value ) |
| void SetShootDistance | ( | Context | instigator, |
| float | value ) |
Set how far the sentry will scan in front of it for a valid target.
| instigator | The source context of this change. |
| value | Scan distance |
| void Shoot | ( | Context | instigator | ) |
Trigger a scan to check if a valid target is in front. Will trigger the "OnHit" event depending on the result of the shot.
| instigator | The source context triggering this change |