Jump to content
Ledo_112

Keep Attributes (SIDE) on Respawn

Recommended Posts

Hey Ho,
I am creating a pvp mission where you can capture different bases.
In those Bases are some AAF Statics which will join either BLUFOR or OPFOR once you activated a trigger.
Let´s say BLUEFOR captured the Base and all AAF-statics joined BLUEFOR, when CSAT now attackes the Base and destroies those statics they will respawn as INDEPENDENT again, but I want them to spawn as BLUEFOR since the Base is captured by BLUEFOR.

Sorry for this complicated and very confusing explanation ^^ 
To break it down to one Question:
Is there a command to enter in the respawn module to let the vehicle respawn with the same side (BLUEFOR, OPFOR, INDEPENDED) which it had at the moment of destruction?

:) 

Share this post


Link to post
Share on other sites

Never dealt with it and did not test anything but I guess you can:

 

use BIS_fnc_moduleRespawnVehicle on your statics when your capture trigger fires. As this BIS function has the possibility to pass code to the respawned vehicle by using its 4th argument you should be able to change the vehicles side with it.

 

How to change vehicles side? Idk but I guess again:

you could use addVehicle with a fresh created  group (createGroup) of your desired side.

 

Idk if there is a fency 3d3n solution but maybe.

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

×