Jump to content
Sign in to follow this  
SpaydCBR

How to synchronize spawned vehicles to existing modules

Recommended Posts

Hello guys,

 

I want to spawn a set of vehicles once a trigger is activated. I have that part done. What I also want is those vehicles to be new infantry respawn positions in the respawn menu and they should respawn once destroyed.

 

The respawn position and vehicle respawn modules work pretty well when the vehicles already exist, but they don't seem to work when I use synchronizedObjectsAdd to sync newly spawned vehicles to those existing modules.

 

This is the code I've been using

_pos = getMarkerPos "alpha_west_car_1";
_veh = "B_MRAP_01_hmg_F" createVehicle _pos;
vehspawn_alpha synchronizeObjectsAdd [_veh];
vehinfspawn_alpha synchronizeObjectsAdd [_veh];

The first 2 lines seem to be working fine, but I don't think the second two are doing anything.

 

Any ideas?

 

Thanks!

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  

×