User Tools

Site Tools


tnhscript:randompatrolpath

RandomPatrolPath

This script allows you to create multiple patrol paths for a single AI. Create the different patrol paths as normal, but manually link the AI to the each possible starting points using AICurrentPatrol. When Sim starts, all but one of the AICurrentPatrol links will be removed, causing the AI to patrol to the destination of the remaining link. Set the parameter teleport_ai to have the AI immediately teleported to the starting point, instead of patrolling to it.

Messages Sim
Links AICurrentPatrol
Parameters teleport_ai (boolean)
tnhscript/randompatrolpath.txt · Last modified: 2010/11/22 19:11 (external edit)