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 | SetDestination (Context instigator) |
Sets the npcs destination to the position of an instruction node. | |
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.
instigator | The source context triggering this change |
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. |