SetActivatorToPlayer: Difference between revisions

From Zandronum Wiki
(Created page with "{{Template:ACSWarning}} int '''SetActivatorToPlayer'''(int playernumber) ==Usage== Sets the activator of the script to a specific player. This functions replaces using SetAc...")
 
m (fixed grammatical error)
Line 3: Line 3:


==Usage==
==Usage==
Sets the activator of the script to a specific player.  This functions replaces using SetActivator with a Player Pointer (AAPTR_PLAYERx) and allows any player to be set as the activator, not just the players 1 to 8.
Sets the activator of the script to a specific player.  This functions replaces using SetActivator with a Player Pointer (AAPTR_PLAYERx) and allows any player to be set as the activator, not just the first 8 players.


==Parameters==
==Parameters==
* playernumber: Number of the player to set as the activator.
* playernumber: Number of the player to set as the activator.

Revision as of 22:05, 17 January 2019

This article documents a Zandronum-specific ACS feature which may not be supported by ZDoom and its other child ports.

int SetActivatorToPlayer(int playernumber)

Usage

Sets the activator of the script to a specific player. This functions replaces using SetActivator with a Player Pointer (AAPTR_PLAYERx) and allows any player to be set as the activator, not just the first 8 players.

Parameters

  • playernumber: Number of the player to set as the activator.