Currently supported Path Entities: Difference between revisions
From The DarkMod Wiki
Jump to navigationJump to search
path_lookat now implemented |
|||
Line 7: | Line 7: | ||
== Supported == | == Supported == | ||
* '''path_corner''' (this one's been tested) | * '''path_corner''' (this one's been tested) | ||
* '''path_anim''' (plays an anim once when the AI gets to this point in space, then goes on to the next | * '''path_anim''' (plays an anim once when the AI gets to this point in space, then goes on to the next path entity when the anim is done playing) | ||
path entity when the anim is done playing | |||
* '''path_cycleanim''' (stays in place and loops an anim, either for a specified amount of time or until triggered) | * '''path_cycleanim''' (stays in place and loops an anim, either for a specified amount of time or until triggered) | ||
* '''path_lookat''' (for the next ''wait'' seconds, turn head to look at the entity given by the ''focus'' spawnarg (defaults to looking at the path_lookat entity itself). Immediately keep moving to next path_* in sequence.) | * '''path_lookat''' (for the next ''wait'' seconds, turn head to look at the entity given by the ''focus'' spawnarg (defaults to looking at the path_lookat entity itself). Immediately keep moving to next path_* in sequence.) |
Revision as of 06:51, 20 April 2008
Originally written by Ishtvan on http://forums.thedarkmod.com/topic/3006
Path entities are how you set up AI patrols, AI's turning in place, AI's waiting at a particular point for a while before moving on, AI's randomly switching between two patrol routes, and all combinations of those things.
The following path_* entities should work, but have not been extensively tested:
Supported
- path_corner (this one's been tested)
- path_anim (plays an anim once when the AI gets to this point in space, then goes on to the next path entity when the anim is done playing)
- path_cycleanim (stays in place and loops an anim, either for a specified amount of time or until triggered)
- path_lookat (for the next wait seconds, turn head to look at the entity given by the focus spawnarg (defaults to looking at the path_lookat entity itself). Immediately keep moving to next path_* in sequence.)
- path_turn (turns in place)
- path_wait ( waits, standing completely motionless at a given place for a given amount of time, then moves to next path_* ) - (tested OK - Fidcal)
- path_waitfortrigger ( waits at a given place until triggered, then moves to next path_* )
- path_hide (deactivates and stops rendering the AI)
- path_show (starts rendering the AI)
- path_attack (Used to script AI attacking a particular enemy, for scripted sequences I guess. AI will continue on to the next path entity if it kills the enemy)
For more information, see the editor usage tab for each of these entities.
Not yet supported
- void path_conversation_listen();
- void path_conversation();
- void path_headanim();
- void path_talk();
- void path_talk_triggered();
- void path_talk_primary();
- void path_talk_secondary();
- void path_waitforheadanim();
- void path_jump();
- path_default (not sure if this was even meant to be used)
- path_sentry_* These only apply to D3 sentry robots, so there's no reason these should be on DarkMod AI. (Maybe we can use some them though if they're useful for certain AI behaviors, like telling characters when to lead the player and when to leave the player behind)