- Place unit in editor
- Add scripted waypoint with a path to a script with content:
systemChat str [_thisScript];
- Notice undefined variable error
systemChat str [_thisScript];
To be able to detect when a current waypoint is changed or deleted when using Per frame handler / unscheduled for waypoint logic (in most performant way, could probably be done by checking currentWaypoint).
params ["_group"]; [{ params ["_thisScript"]; if (scriptDone _thisScript) exitWith {true}; // blah blah some logic // eg. setVelocityTransformation _someLogicCondition }, { params ["", "_group"]; _group setVariable ["my_wpDone", true]; }, [_thisScript, _group]] call CBA_fnc_waitUntilAndExecute; waitUntil {_group getVariable ["my_wpDone", false]};
Also inconsistent, as scheduled scripts in general should have _thisScript. So you'd assume that if canSuspend, that you can access _thisScript too.
remoteExec and particle scripts and init.sqf and action scripts were also missing it.