SetActivatorToPlayer2

bool SetActivatorToPlayer2(int player)

Description

Zandronum provides SetActivatorToPlayer, while ZDoom only provides AAPTR_PLAYERx constants for SetActivator, which support 8 players max.

This function first attempts to use SetActivatorToPlayer, then, if it fails (for example, due to the mod running in ZDoom), it attemps to use SetActivator(0, AAPTR_PLAYER1<<player). If that fails, or if a player number over 7 was requested, the function returns false.

The function returns true if the activator has been successfully changed to the specified player number.