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 Type | Description |
---|---|
void | This function doesn't return anything |
Parameters
Parameter | Type | Description |
---|---|---|
1 | bool | True to enable attractor property, false othewise |
2 | string | (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.