Modme Forums

Certain perk appear only if in coop?

Game Modding | Call of Duty: World at War | Scripting


ModmeBot:

Thread By: imRetro
Wondering if there's a way to have a perk only show up if you're in coop.


ModmeBot:

Reply By: Harry Bo21

imRetro
Wondering if there's a way to have a perk only show up if you're in coop.

basically need to check on player spawn / connect - how many players are in game

function player_connect()
{
	a_players = getPlayers();
	
	if ( a_players.size > 1 )
	    // co-op
        else
            // solo
	
}


best to check using "on player spawned" as tha'tll will run the code every time a player spawns or respawns