Jump to content
-ami- mofo

bis fnc spawngroup direction / azimuth?

Recommended Posts

Hi guys I have a marker called M1 and a trigger with this...

 

grp = [getMarkerPos "M1", independent, 6] call bis_fnc_spawngroup;

 

I want the group to spawn and take their formation all facing in a certain direction though and as yet I've failed. Tried something from the wiki which didn't work but I'm a scripting nub anyway.

 

Is there a little bit of extra code I can add to that to achieve what I want?

 

Thanks

Share this post


Link to post
Share on other sites
21 hours ago, -ami- mofo said:

I want the group to spawn and take their formation all facing in a certain direction though and as yet I've failed

 

Maybe this is what you're after

grp = [getMarkerPos "M1", independent, 6, nil, nil, nil, nil, nil, MY_DIRECTION] call bis_fnc_spawngroup;

In the example above, only replace "MY_DIRECTION" with the certain direction (angle in degrees) you'd like to have

 

I hope this helps

Share this post


Link to post
Share on other sites

Hey guys I don't really get that optional azimuth/direction, makes no sense to me and I tried the other example but doesn't matter what number of degrees I put in they just spawn and face the same way everytime.

Share this post


Link to post
Share on other sites

Got it working...

 

grp = [getMarkerPos "M1", independent, 6] call bis_fnc_spawngroup; grp setFormDir 220;

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

×