AiParams.allowChangePose 2

When enabled, AI will change pose depending on cover, suppression and other situations. Disable this function if you want to control soldier's pose by custom scripting


Return value

Return TypeDescription
voidThis function doesn't return anything

Parameters

ParameterTypeDescription
1boolSet the AI functionality enabled

Examples

myself().getAiParams().allowChangePose(false) -- prevents AI to automatically switch pose

Back to Scripting API