Page MenuHomeFeedback Tracker

Group spawn script error
Closed, ResolvedPublic

Description

I have a trigger that calls my script. Nul = execVM "spawn.sqf";

The script is a simple spawn group:

_mygroup = [getmarkerPos "mygroupstart", EAST, ["O_officer_F","O_medic_F","O_engineer_F","O_Soldier_A_F","O_Soldier_lite_F","O_soldier_repair_F","O_soldier_UAV_F","O_Soldier_GL_F","O_soldier_exp_F","O_Soldier_A_F","O_medic_F","O_medic_F","O_Soldier_AR_F"],[],[],[],[],[],180] call BIS_fnc_spawnGroup;

_wp1 = _mygroup addWaypoint [getmarkerpos "wp1", 0];
_wp1 setWaypointType "MOVE";
_wp1 setWaypointSpeed "NORMAL";
_wp1 setWaypointBehaviour "AWARE";
_wp1 setWaypointFormation "LINE";

_wp2 = _mygroup addWaypoint [getmarkerpos "wp2", 0];
_wp2 setWaypointType "SAD";
_wp2 setWaypointSpeed "NORMAL";
_wp2 setWaypointBehaviour "AWARE";
_wp2 setWaypointFormation "COLUMN";

_wp3 = _mygroup addWaypoint [getmarkerpos "mygroupstart", 0];
_wp3 setWaypointType "cycle";
_wp3 setWaypointSpeed "NORMAL";
_wp3 setWaypointBehaviour "AWARE";
_wp3 setWaypointFormation "COLUMN";

It works but kicks this error when trigger condition is met:

'...
private ["_skip"];
_skip = false;
if (|#|_minunits != -1) then
{

if (_i > (_min...'
Error undefined variable in expression: _minunits
File A3\functions_f\spawning\fn_spawnGroup.sqf, line 124

Please fix this urgently.

Details

Legacy ID
429939644
Severity
None
Resolution
Fixed
Reproducibility
Always
Category
Scripting
Steps To Reproduce

Set up a trigger that calls spawn.sqf. Setup 3 markers called mygroupstart and wp1 and wp2.

Spawn.sqf contents:

_mygroup = [getmarkerPos "mygroupstart", EAST, ["O_officer_F","O_medic_F","O_engineer_F","O_Soldier_A_F","O_Soldier_lite_F","O_soldier_repair_F","O_soldier_UAV_F","O_Soldier_GL_F","O_soldier_exp_F","O_Soldier_A_F","O_medic_F","O_medic_F","O_Soldier_AR_F"],[],[],[],[],[],180] call BIS_fnc_spawnGroup;

_wp1 = _mygroup addWaypoint [getmarkerpos "wp1", 0];
_wp1 setWaypointType "MOVE";
_wp1 setWaypointSpeed "NORMAL";
_wp1 setWaypointBehaviour "AWARE";
_wp1 setWaypointFormation "LINE";

_wp2 = _mygroup addWaypoint [getmarkerpos "wp2", 0];
_wp2 setWaypointType "SAD";
_wp2 setWaypointSpeed "NORMAL";
_wp2 setWaypointBehaviour "AWARE";
_wp2 setWaypointFormation "COLUMN";

_wp3 = _mygroup addWaypoint [getmarkerpos "mygroupstart", 0];
_wp3 setWaypointType "cycle";
_wp3 setWaypointSpeed "NORMAL";
_wp3 setWaypointBehaviour "AWARE";
_wp3 setWaypointFormation "COLUMN";

Preview and move into the trigger area.

Event Timeline

RickOShay edited Additional Information. (Show Details)
RickOShay set Category to Scripting.
RickOShay set Reproducibility to Always.
RickOShay set Severity to None.
RickOShay set Resolution to Fixed.
RickOShay set Legacy ID to 429939644.May 7 2016, 5:45 PM

Should be fixed in next dev branch update.

MadDogX added a subscriber: MadDogX.May 7 2016, 5:45 PM

Mass closing tickets marked as resolved more than 1 month ago.

If the issue is in fact not resolved, please create a new ticket referencing this one and ask for it to be re-opened.