Automatic join for other players

dantedevil

Well-known member
Lately I have been investigating if it is possible to automatically generate the other players to join when choosing a game mode that is multiplayer.
For example:
When selecting VERSUS MODE in the menu of my mod, a custom menu will open, where different versus modes appear.
1P vs CPU
1P vs 2P
1P vs 2P vs 3P, etc.

The idea would be that when selecting the 1P vs 2P mode, the game goes to the select screen, with the P1 and P2 cursors already ready to choose the character, as it usually happens in video games when selecting a multiplayer mode.
This was the script that I managed to create based on what I was able to investigate. Using it does not give me errors, but nothing happens either.
Code:
void AutoPjoin (int P, int Flag)

    int Player = getplayerproperty(P, "entity");

    if (Player != NULL()){
      changeplayerproperty(Player,"joining",Flag);
    }
}

It's obviously wrong, but the real question is:
Is it possible to do this?  :-\
 
Back
Top Bottom