My head hurts.
So in joe.sqf I can use
and in fred.sqf I can use the same
but they will not be the same thing.
So if I want joe to pass fred the same var, that brings in the whole
Code:
nul = [ something here to pass ] execvm "fred.sqf"
thing up. How do I pass _var from joe to fred? Somewhere in fred sqf I have to have
or
???
Which stil leaves me scratching my head about this bit of code that works great
Code:
g1wp1=_grp1 addWaypoint [_asloc, 75];
g1wp1 setWaypointBehaviour "COMBAT";
g1wp1 setWaypointType "LOAD";
[_grp1, 1] setWaypointStatements ["true", "landed = true"];
// pop smoke at lz
waituntil {(1000 - (random 500)) > _man distance _AShelo1};
_man playAction "ThrowGrenade";
sleep 5;
_smoker = "SmokeShellGreen" createVehicle (getMarkerPos "asloc");
The waypoint was created from _asloc but the green smoke that the guy pops needed me to use "asloc".... in the blasted " " marks.
Aaaaaaaagh!