ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools



bool SetActivatorToPlayer2(int player)


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.

functions/setactivatortoplayer2.txt · Last modified: 2017/06/13 15:37 by korshun