Jump to content
Sign in to follow this  
xALIENAx

Trouble SPawning Groups on Marker

Recommended Posts

Okay again Noob mission maker here.. In my Mission folder i have "spawns.sqf"

[getMarkerPos aSpawnPos, West, 5] call BIS_fnc_spawnGroup;
[getMarkerPos bSpawnPos, West, 5] call BIS_fnc_spawnGroup;
[getMarkerPos cSpawnPos, West, 5] call BIS_fnc_spawnGroup;

This should create 3 Groups of 5 Random West Units At each marker.

I then Have this in my trigger in game:

_this = execVM "spawns.sqf";

The trigger activates but i get no units.

Share this post


Link to post
Share on other sites

Hi... You need to use quotes for markernames and make sure you have the Function module placed in the editor.

Works fine.

[getMarkerPos [b]"aSpawnPos"[/b], West, 5] call BIS_fnc_spawnGroup;
[getMarkerPos [b]"bSpawnPos"[/b], West, 5] call BIS_fnc_spawnGroup;
[getMarkerPos [b]"cSpawnPos"[/b], West, 5] call BIS_fnc_spawnGroup;

BIS_fnc_spawnGroup

getMarkerPos

Share this post


Link to post
Share on other sites

dyuhh no module in the editor.

This is why i should stick to coding instead of mission making LOL

Share this post


Link to post
Share on other sites

Also need a waitUntil {!isNil "bis_fnc_init"}; to make sure the functions are actually initialized before you try to use them (though you may often "luck out" and have them already initialized when you run the command, but have that line just to be sure).

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  

×