Of course, just call it like this
And in the scriptCode:[unitName] execVM "randompos.sqf";
You can feed a script any parameter you want by using that method. For example you may want to tell the script what direction and unitPos to set, rather than putting them in the array with the position data.Code:_unit = _this select 0; ... blah blah all the other stuff ... _unit setposatl _pos; _unit setdir _dir; _unit setUnitPos "Down";
[Man1,300,"up"] execvm "RandomPos.sqf";
Code:_unit = _this select 0; _dir = _this select 1; _upos = _this select 2; ... _unit setposatl _pos; _unit setdir _dir; _unit setUnitPos _upos;
HOME
Reply With Quote
