|
Endstar LUA API Documentation
|
Contains methods to modify the npc during gameplay. More...
Public Member Functions | |
| void | Kill (Context instigator) |
| Kills the NPC by reducing its health to zero. | |
| void | SetCombatMode (Context instigator, int combatMode) |
| Sets the combat mode for the NPC. | |
| void | SetDamageMode (Context instigator, int damageMode) |
| Sets the damage mode for the NPC. | |
| void | SetPhysicsMode (Context instigator, int physicsMode) |
| Sets the physics mode for the NPC. | |
| void | SetCanFidget (Context instigator, bool canFidget) |
| Configures whether the NPC can fidget. | |
| void | SetDestinationTolerance (Context instigator, float newTolerance) |
| Configures the distance to a destination where the npc will stop moving. | |
| void | SetDestination (Context instigator) |
| Sets the npcs destination to the position of an instruction node. This method is obsolete. Use SetDestinationToCell instead. | |
| void | SetDestinationToCell (Context instigator, CellReference cellReference, Context fallbackContextForPosition) |
| Set the npcs destination to the position of the selected cell. If no cell is selected it will set the destination to the position of the fallback context. | |
| void | SetDestinationToPosition (Context instigator, Vector3 position) |
| Sets the npcs destination to the position in world space. | |
| void | SetDestinationToPosition (Context instigator, Vector3Int position) |
| Sets the npcs destination to the position in world space. | |
| void | ClearDestination (Context instigator) |
| Clears the NPC's destination. | |
| Vector3 | GetNpcPosition (Context instigator) |
| Gets the current position of the NPC. | |
| void | SetNewWanderPosition (Context instigator, float distance) |
| Sets a new wander position for the NPC within a specified distance of its current location. | |
| void | SetNewRovePosition (Context instigator, float roveDistance, float distancePerMove) |
| Sets a new rove position for the NPC within a certain distance of an instruction node. | |
| int | GetNumberOfInteractables () |
| Gets the number of interactables associated with the NPC. | |
Contains methods to modify the npc during gameplay.
| void ClearDestination | ( | Context | instigator | ) |
Clears the NPC's destination.
| instigator | The source context triggering this change |
Gets the current position of the NPC.
| instigator | The source context triggering this change |
| int GetNumberOfInteractables | ( | ) |
Gets the number of interactables associated with the NPC.
| void Kill | ( | Context | instigator | ) |
Kills the NPC by reducing its health to zero.
| instigator | The source context triggering this change |
| void SetCanFidget | ( | Context | instigator, |
| bool | canFidget ) |
Configures whether the NPC can fidget.
| instigator | The source context triggering this change |
| canFidget | If set to true, the NPC can fidget. |
| void SetCombatMode | ( | Context | instigator, |
| int | combatMode ) |
Sets the combat mode for the NPC.
| instigator | The source context triggering this change |
| combatMode | The CombatMode to set. |
| void SetDamageMode | ( | Context | instigator, |
| int | damageMode ) |
Sets the damage mode for the NPC.
| instigator | The source context triggering this change |
| damageMode | The DamageMode to set. |
| void SetDestination | ( | Context | instigator | ) |
Sets the npcs destination to the position of an instruction node. This method is obsolete. Use SetDestinationToCell instead.
| instigator | The source context triggering this change |
| void SetDestinationToCell | ( | Context | instigator, |
| CellReference | cellReference, | ||
| Context | fallbackContextForPosition ) |
Set the npcs destination to the position of the selected cell. If no cell is selected it will set the destination to the position of the fallback context.
| instigator | The source context triggering this change |
| cellReference | The cell to direct the npc to move to |
| fallbackContextForPosition | The context of the fallback position object |
| void SetDestinationTolerance | ( | Context | instigator, |
| float | newTolerance ) |
Configures the distance to a destination where the npc will stop moving.
| instigator | The source context triggering this change |
| newTolerance | The new destination tolerance. |
Sets the npcs destination to the position in world space.
| instigator | The source context triggering this change |
| position | The position to set as the destination |
| void SetDestinationToPosition | ( | Context | instigator, |
| Vector3Int | position ) |
Sets the npcs destination to the position in world space.
| instigator | The source context triggering this change |
| position | The position to set as the destination |
| void SetNewRovePosition | ( | Context | instigator, |
| float | roveDistance, | ||
| float | distancePerMove ) |
Sets a new rove position for the NPC within a certain distance of an instruction node.
| instigator | The source context triggering this change |
| roveDistance | The maximum distance to rove. |
| distancePerMove | The distance per move during roving. |
| void SetNewWanderPosition | ( | Context | instigator, |
| float | distance ) |
Sets a new wander position for the NPC within a specified distance of its current location.
| instigator | The source context triggering this change |
| distance | The distance within which to find a wander position. |
| void SetPhysicsMode | ( | Context | instigator, |
| int | physicsMode ) |
Sets the physics mode for the NPC.
| instigator | The source context triggering this change |
| physicsMode | The PhysicsMode to set. |