|
Endstar LUA API Documentation
|
Used to create interaction behaviors for the NPCs. More...
Public Member Functions | |
| void | SetIsHeldInteraction (Context instigator, bool isHeldInteraction) |
| Sets the interaction held behavior for the npc interaction. | |
| void | SetInteractionAnimation (Context instigator, InteractionAnimation interactionAnimation) |
| Sets the interaction animation for the interaction. | |
| void | SetInteractionDuration (Context instigator, float duration) |
| Sets the hold duration of a held interaction. | |
| void | StopInteraction (Context interactor, Context npcContext) |
| Forces an interacting npc to stop interacting. | |
| override void | GiveInstruction (Context instigator, Context npc) |
| Gives this instruction to the target npc. | |
| override void | RescindInstruction (Context interactor, Context npcContext) |
| Rescinds the interaction instruction given to an npc. | |
| void | InteractionCompleted (Context interactor) |
| Tells the interaction node that the player completed the interaction completely. | |
| void | InteractionCanceled (Context interactor) |
| Tells the interaction node that the player canceled the interaction before fully completing it. | |
Public Member Functions inherited from InstructionNode | |
| Context | GetContext () |
| Gets the context of this instruction node. | |
| void | SetContextBehavior (bool useContext) |
| Context | GetNpcReference () |
| Gets the context of the referenced npc. | |
| float | GetTime () |
| Gets the current local game time. | |
Additional Inherited Members | |
Properties inherited from InstructionNode | |
| Endless.Gameplay.Scripting.InstructionNode | ManagedNode [get] |
Used to create interaction behaviors for the NPCs.
Gives this instruction to the target npc.
| instigator | The context of the object instigating this action |
| npc | The npc to give this instruction to |
Reimplemented from InstructionNode.
| void InteractionCanceled | ( | Context | interactor | ) |
Tells the interaction node that the player canceled the interaction before fully completing it.
| interactor | The context of the interactor |
| void InteractionCompleted | ( | Context | interactor | ) |
Tells the interaction node that the player completed the interaction completely.
| interactor | The context of the interactor |
Rescinds the interaction instruction given to an npc.
| interactor | The interactor involved in the interaction |
| npcContext | The npc to rescind the instruction for. |
Reimplemented from InstructionNode.
| void SetInteractionAnimation | ( | Context | instigator, |
| InteractionAnimation | interactionAnimation ) |
Sets the interaction animation for the interaction.
| instigator | The source context triggering this change |
| interactionAnimation | The interaction animation to set |
| void SetInteractionDuration | ( | Context | instigator, |
| float | duration ) |
Sets the hold duration of a held interaction.
| instigator | The source context triggering this change |
| duration | The duration of the held interaction. |
| void SetIsHeldInteraction | ( | Context | instigator, |
| bool | isHeldInteraction ) |
Sets the interaction held behavior for the npc interaction.
| instigator | The source context triggering this change |
| isHeldInteraction | The value of the new held interaction bool |