Soldier.setBrain 3

Set script that controls AI. Usually AI will work with "Default" behaviour, which will controls the way AI gives and follows squad orders, however it's possible to define a completly new behaviour by coding a dedicated "brain" LUA file and assign it to the AI with this function


Return value

Return TypeDescription
boolFalse if script is not found

Parameters

ParameterTypeDescription
1stringFile Name for the script to use.Script must end with ".lua" and must be inside the "/script/ai/". If you want the AI to use the Default behaviour, use "Default" as parameter.If a wrong parameter is assigned, the AI will not change behaviour

Examples

No examples available.


Back to Scripting API