Objective.setAttractor 51

Enable or disable the attractor feature of the Scripted Mission Objective for both factions. When enabled, default AI will try to reach and fight inside the area. Optionally can change the effect for one faction only


Return value

Return TypeDescription
voidThis function doesn't return anything

Parameters

ParameterTypeDescription
1boolTrue to enable attractor property, false othewise
2string(Optional) Change the attractor property for a specific faction only. Don't fill the parameter, or use Nil if you want the functionality to be applied to all factions. Default: nil

Examples

No examples available.


Back to Scripting API