AI – functions for working with AI¶
zDExt_AI_TurnToWP¶
Queues an AI action that turns an NPC towards a waypoint. If no waypoint matches, the function also searches for a freepoint or another vob with that name. The target point must exist.
npc– instance of the NPCwp– name of waypoint in the game world
| Example usage | |
|---|---|
zDExt_AI_TurnToVob¶
Queues an AI action that turns an NPC towards a freepoint or vob in the world. If the vob is not found, no action is queued.
npc– instance of the NPCvob– name of freepoint or vob in the game world
| Example usage | |
|---|---|
zDExt_AI_TurnToPos¶
Queues an AI action that turns the NPC towards the specified world position.
npc– NPC to turnposX,posY,posZ– world coordinates in cm
| Example usage | |
|---|---|
zDExt_AI_CallFunction¶
Queues a script function call on the NPC through its AI event manager. Pass a function reference with no arguments.
npc– NPC whose AI queue receives the callfunction– reference to the Daedalus function to execute