SetActivatorToPlayer: Difference between revisions

no edit summary
(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...")
 
No edit summary
Tag: Source edit
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{Template:ACSWarning}}
{{Template:ACSWarning}}
int '''SetActivatorToPlayer'''(int playernumber)
bool '''SetActivatorToPlayer''' (int ''playernumber'')


==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.
 
=== Return value ===
Returns true if the player is valid and was set as the activator; false otherwise.
 
== Examples ==
{{noexamples}}
 
[[Category: ACS functions]]