Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
ringoray

mission problem

Recommended Posts

Hi Everyone, Noob question here. Im using the custom camps that you can place using the game logic and object grabber script. When I play the game with a friend these camps spawn twice and three times if there are 3 of us. How can i prevent this from happening? Thanks in advance for any help.

Share this post


Link to post
Share on other sites

Hi.Creating objects on the map has a global effect. This means they only need to be created on the server. One will spawn for the server & 1 for each client if you create an object without creating it exclusively on the server. For example, if you had 50 people in a dedicated server and spawned 1 vehicle, 51 would spawn. To only create the objects/camps on the server you can use:

Before you create the vehicles

if (!isServer) exitWith {};
...spawn the camps here...

or

Anywhere in the script

if (isServer) then { ... you spawn the camps here...}

or

via trigger

condition:

isServer

onact: spawn your camps

Edited by Iceman77

Share this post


Link to post
Share on other sites
Sign in to follow this  

×