• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Is there a way to make a player slot look like a computer after game starts?

Status
Not open for further replies.
Level 13
Joined
Mar 24, 2010
Messages
950
I dont think this is possible, but what i want to know is after the game starts, can a user player slot or closed slot be turned into a computer slot as far as the game can detect.
Like without making a slot as "Computer normal" before the game starts can it be made into that later in the game?
I want this to return as true after that for any given player.
Condition - (Player 1 (Red) controller) Equal to Computer

Possible or no? I'm thinking its not..but figured i'd ask. :)
 
Level 25
Joined
Mar 29, 2020
Messages
1,466
I don't know if there is a way to do exactly that, but what are you trying to do? you can probably find a workaround - like -

have an integer array with a value for each player that you set at map init representing if the player is controlled by pc,user or none.

when the event that is relevant to you happens - change the integer value to what you want.

then just check for that integer which in effect is your own customizable player controller index.
 
Level 19
Joined
Oct 17, 2012
Messages
859
You cannot enable the built-in AI for empty slots or players who left. You will have to either trigger the actions or relinquish control of the units to a computer controlled player slot. With 24 players, there should be plenty of player slots to use.

FYI, a player should not have too many units being ordered to move or you will start seeing movement lag. It would be best to spread units among players and just switch player colors if necessary.
 
Status
Not open for further replies.
Top