Skip to content
10Dozen edited this page Apr 3, 2016 · 3 revisions

Group can be added to Group Reaction System (GRS) via several ways. After they were added, groups will call for reinforcements or reinforce other groups.

Be adviced: At least 1 DynAI zone should exist!

Adding Groups to GRS

Force Editor-placed units

To include all editor-placed untis to GRS, set dzn_dynai_forceGroupResponse = true; variable at dzn_dynai/dzn_dynai_init.sqf.

Set Unit Variable

Add next code to unit's init in the editor: this setVariable ["dzn_dynai_canSupport",true]; It's enough to set variable to single unit from group.

Synchronize with GameLogic

Place GameLogic object and add next code to it's init in the editor: this setVariable ["dzn_dynai_canSupport",true]; Now synchronize all units you want to include to GRS with this GameLogic. It's enough to synchronize single unit from group.

API call

@Unit or @Group call dzn_fnc_dynai_addGroupAsSupporter -- where single argument is Unit or Group. You are free to spawn this function.