splatsh 10 Posted December 14, 2009 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
shuko 45 Posted December 14, 2009 { if (!isplayer _x) then {deletevehicle _x} } foreach playableunits; Share this post Link to post Share on other sites
splatsh 10 Posted December 14, 2009 (edited) 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 December 14, 2009 by splatsh Share this post Link to post Share on other sites
shuko 45 Posted December 14, 2009 Yep, playableunits is empty in SP/editor preview. Share this post Link to post Share on other sites