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

All Server slots as civ?

Recommended Posts

Hi all

I working on a multiplayer mission at the moment bit of a newbie.

I would like my server to only have civ no armed people.

I need to them to spawn in random locations. I think the best way to do that is to drop them from plain cycling altis with parachute Lol. only thing is not sure how or where to start.

I am using mcc4 r11 with zeus the server would have about 64 player on it on altis map

Had this kind chap help me with this info

Well, this is the wrong forum section. First, you should place 64 players in the editor (set them to playable), then set a few markers and sync them with every of your 64 units.

How do I start So I add 64 civ and make them playable. how do I get them to spawn in random locations and make the server slots just civ when I start mcc server??

Thanks

DeanO

Share this post


Link to post
Share on other sites

I have no knowledge of MCC, but if you just use all civilian units, players will only be able to join as civs.

Still having no knowledge of MCC, if the server has an init.sqf, copy and paste this in front of everything:

_position = [0,0,0];

while {surfaceIsWater _position} do
{
_position set [0, random 30000];
_position set [1, random 30000];
};

player setPosATL _position;
player setDir (random 360);

This will give you a random land position for Altis. Some similar code could be created for Stratis. Since VR has no water except for one little corner that the surfaceIsWater command doesn't work on, players will just be thrown randomly somewhere between [0,0] and [30000,30000]. What this code does is test a position, then if the surface is water, it will randomly select the X & Y coordinates from a range of 0 to 30000. If the surface is still water, it will reset the coordinates. This process repeats until land has been found. The player's position is then set to those coordinates.

EDIT: Added a random direction-set too :)

EDIT2: I made a video demonstrating this, I thought it was cool so I recorded a short demo

video will probably be low quality because I just uploaded it

Edited by DreadedEntity

Share this post


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

×