Jump to content
Sign in to follow this  
abdecken

Weaponholder Multiplayer Synchronisation

Recommended Posts

Placing weaponholder objects seems to create one locally on each client. The result is that when on a dedicated server a player takes a weaponholder it only disapears to him. Other players can still see and take the weaponholder object.

I am using:

MG1 = "weaponholder" createVehicle getpos Desk;

MG1 addMagazineCargo ["100Rnd_762x54_PK",4];

MG1 addWeaponCargo ["PK",2]};

MG1 setpos [getPos Desk select 0,getPos Desk6 select 1,0.9]

Share this post


Link to post
Share on other sites

Try using isServer

Example:

if (isServer) then {
MG1 = "weaponholder" createVehicle getpos Desk;
MG1 addMagazineCargo ["100Rnd_762x54_PK",4]; 
MG1 addWeaponCargo ["PK",2];
MG1 setpos [getPos Desk select 0,getPos Desk6 select 1,0.9];
};

Share this post


Link to post
Share on other sites

You need to use addWeaponCargoGlobal now in multi player so that it syncs with all clients.

Thats why its doing that.

Any object added after mission start, in or out of a cargo space, then you need to use the new Global commands to make sure what ever is taken or placed is synchronized across all clients.

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  

×