PlayerNumber

From Eternity Wiki
Jump to navigationJump to search

Description[edit]

This is an ACS built-in function.

Returns the index of the player activator.

Usage[edit]

int PlayerNumber()

Parameters[edit]

No parameters.

Return value[edit]

The 0-based index of the player activator, or -1 if the activator is not a player.

Examples[edit]

No examples given.

Notes[edit]

Be careful that the index is zero based, so player 1 gets number 0, player 2 gets 1 etc. If activator isn't a player, the return value is -1.

This function's identification in zspecial.acs is: (ACS internal).

See also[edit]