Jump to content
Sign in to follow this  
masterdebator

Creating a script to adjust AI given to players based on amount of players in game and sides unbalanced

Recommended Posts

_a=0.3; //At _a=0.2, with 30 players, 6 AI allowed/player....At _a=0.3, with 30 players, 3 AI allowed/player. _b=12; while {! CTI_GameOver} do { _nbp={isPlayer _x} count playableUnits; _next=0 max ceil(_b-(_a*_nbp)); if !(missionNamespace getVariable "CTI_PLAYERS_GROUPSIZE" == _next ) then { missionNamespace setVariable ["CTI_PLAYERS_GROUPSIZE",_next] ; HUD_NOTIFICATIONS pushBack [format ["Group size is now : %1 ",_next],time+10,"ffffff"]; }; sleep 60; };


Im trying to change this script to do a check for PlayerNumber instead. Im essentially trying to make a script that will give the side with less players more AI while also balancing according to server player count https://community.bistudio.com/wiki/playersNumber anyone have any suggestions?

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  

×