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

Check if player, if not then remove.

Recommended Posts

Hi all.

I wonder if I can make one code like they have in OFP Dragon Rising.

Its checks if I am a player or a AI in my squad.

Like this:

I make a squad with 5 playable players.

If I play mission alone, then this code removes the other 4 AI players.

And if I am playing with one other friend of my, then the code is removing the other 3 AI players, and so on...

So can it be done with one .sqf file?

How?

Thanks

Share this post


Link to post
Share on other sites

{ if (!isplayer _x) then {deletevehicle _x} } foreach playableunits;

Share this post


Link to post
Share on other sites

I have put that line in one init.sqf file, but it would not work.

Do I need to do something else?

Yes I do.... I need to start the mission in multiplayer mode.

Edited by splatsh

Share this post


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

×