When using the ws_fnc_taskAmbush function with the following commands:
Trigger:
- VName : AmbushTrigger
- Size : X = 50, Y = 50
- Trigger on any player inside.
On act:
_group = [ SpawnPos, "soldier name] call Zen_SpawnGroup;
nul = [_group, AmbushTrigger] spawn ws_fnc_taskAmbush;
The desired soldiers are spawned on location SpawnPos, but after when the taskAmbush is called, there is a script error:
Undefined variable in expression on line 43. Technically it says _ambush variable is undefined.
When using the ws_fnc_taskAmbush function with the following commands:
Trigger:
On act:
_group = [ SpawnPos, "soldier name] call Zen_SpawnGroup;
nul = [_group, AmbushTrigger] spawn ws_fnc_taskAmbush;
The desired soldiers are spawned on location SpawnPos, but after when the taskAmbush is called, there is a script error:
Undefined variable in expression on line 43. Technically it says _ambush variable is undefined.