Jump to content
Sign in to follow this  
thdman1511

Help with using BIS_fnc_spawnGroup

Recommended Posts

after reading posts from a few sections of the forum it was suggest to use BIS_fnc_spawnGroup to dynamic spawning. After researching it on BI Wiki, I tested it out using a trigger only wanting to spawn 5 units at a Marker Position.

I set up the trigger to detect when enemy are spotted near a military camp, and in the ON activation I used the following code:

[getMarkPos "Start1",west,5] call BIS_fnc_spawnGroup; However no group were spawn.

What I am trying to set up was a fire team on watch at the nearby light house near Jay Cove, and once they detected enemy forces approaching the military camp there, I siren would sound and a group of soldiers would spawn at the markers called Start1 inside the camp.

am I using the function proper and could someone explain this function in easy terms so that I can use it correctly when designing my mission.

Share this post


Link to post
Share on other sites

https://community.bistudio.com/wiki/BIS_fnc_spawnGroup

[b][color=#ff0000]qrfgrp = [/color][/b][getMark[color=#0000ff][b]er[/b][/color]Pos "Start1",west,5] call BIS_fnc_spawnGroup;

To make it easier to track your group by script later on, add the part in red.

To get the correct marker position you need the part in blue (Possibly a typo on your end)

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  

×