ACSUtils Wiki

An ACS library for ZDoom-based ports

User Tools

Site Tools


functions:setactivatortoplayer2

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.

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