Jump to content
Sign in to follow this  
Horner

Running UPSMON for a unit spawned through a script.

Recommended Posts

Hi all. Well I've got this script that spawns a a group of 4 US Army Soldiers and I want them to use UPSMON. I have this for my spawning script.

_spawn = 1;

if (_spawn == 1) then
{
_group = [getPos dyna, WEST, ["US_Soldier_TL_EP1", "US_Soldier_EP1", "US_Soldier_GL_EP1", "US_Soldier_AR_EP1"],[],[],[],[],[],180] call BIS_fnc_spawnGroup;
};

So the group's variable name is _group.

I want them to execute this line for UPSMON.

nul=[this,"1"] execVM "scripts\upsmon.sqf";

So I want them to patrol around a marker that has the variable name "1".

Kind of a noobish question but I'm having troubles finding the answer. Thanks in advance!

Share this post


Link to post
Share on other sites

Not at my computer at the moment, but its something like this:

[leader _group,"1","SPAWNED"] execVM "scripts\upsmon.sqf"

Add this after your call to BIS_fnc_spawnGroup.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×