Jump to content
Sign in to follow this  
coolfact

Trouble with synchronizedObjects and vehicles

Recommended Posts

I have decided to get back to some arma scripting after some time apart from arma 3, however doing so resulted in some of my scripts not working anymore, I found out that the problem lie with the  'synchronizedObjects' command, however can't see any problems with the code, and a quick search didn't give a hint about problems with this command.

 

In the mission i have placed a game logic, where i want to synchronize both vehicles and ammo box's to said game logic, but when I used 'synchronizedObjects' command: 

systemchat format["Sync. objects: %1",synchronizedObjects this]; 

only the ammo box's gets listed, I know it worked with vehicles 8 month ago, so did this command get changed? 

 

Share this post


Link to post
Share on other sites

Works well for me

synchronizedObjects vehicleRespawnModule1

 

[97659600# 1780371: heli_transport_01_f.p3d,a5ebc100# 1780345: heli_transport_03_f.p3d,a0ff0100# 1780366: heli_light_01_f.p3d,a3d45d00# 1780333: supplydrop.p3d]

Share this post


Link to post
Share on other sites

Ok fixed the script apparently it was my waituntil line which gave me trouble...

waitUntil {sleep 0.2; !isNull player || time > 0};

Which leads me to why would synchronizedObjects having trouble if one pause the script for 200 miliseconds? is the synchronization with vehicles broken after game start?

 
 

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  

×