Quote: --- Original message by: Gamma927For AI walking on a set path:
-DON'T USE COMMAND LISTS
-DON'T USE MOVE POSITIONS
These are the generic crappy methods that people've used over the past few years. Here's what you DO use:
Place firing positions in the general area you wish the AI to go to. Add some firing positions around the path to that area.
In each AI squad, set the initial and return states to "guarding at guard position"
Create a script, for which every AI encounter can magically see the enemy that it's trying to attack. For instance, if the two AI encounters you want to fight together are redteam and blueteam, you'd use this script:
(script continuous visionscript
(ai_magically_see_encounter redteam blueteam)
(ai_magically_see_encounter blueteam redteam)
)
If you don't know how to create a script, just copy what I typed into a new Notepad file. Replace redteam and blueteam with the names of the AI encounters you want to fight. Then, click File > Save As (in notepad), and set the dropdown box to "All files". Save the file as script.hsc.
Then, move the script.hsc file into the reciprocal of the tags folder, in the data folder. For example, if your scenario is located inside tags\levels\test\death_island\warisland.scenario, then put your script.hsc file inside: data\levels\test\death_island\scripts\script.hsc. The scripts folder will not initially be there; you must create it yourself.
Once in, in Sapien, go to File > Compile scripts (or something like that). Alternatively, you can use the keyboard shortcut ctrl + shift + c.
Sapien should then display scripts compiled successfully. Save the scenario, and compile it in tool.