This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
new:player [2018/02/20 14:49] – korshun | new:player [2018/02/21 12:29] (current) – korshun | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ~~NOCACHE~~ | ||
====== Player utilities ====== | ====== Player utilities ====== | ||
Line 11: | Line 12: | ||
Also, remember that "no player" | Also, remember that "no player" | ||
+ | ===== SetActivatorToPlayer2 ===== | ||
- | ===== Actor information ===== | + | '' |
- | ==== ActorPlayerNumber ==== | + | A replacement for both [[zdoom> |
- | '' | + | [[zdoom> |
- | + | ||
- | If the actor is a player, returns its player number. Otherwise returns -1. | + | |
- | + | ||
- | ==== IsPlayer ==== | + | |
- | + | ||
- | * '' | + | |
- | * '' | + | |
- | + | ||
- | Returns true if the actor is a player. | + | |
- | + | ||
- | + | ||
- | ===== Player information ===== | + | |
- | + | ||
- | ==== PlayerName ==== | + | |
- | + | ||
- | '' | + | |
- | + | ||
- | Returns the player's name. Shorthand for '' | + | |
- | + | ||
- | ==== GetPlayerTeam ==== | + | |
- | '' | + | |
- | + | ||
- | Returns the player' | + | |
Line 67: | Line 46: | ||
* '' | * '' | ||
+ | |||
+ | |||
+ | ===== Actor information ===== | ||
+ | |||
+ | ==== ActorPlayerNumber ==== | ||
+ | |||
+ | '' | ||
+ | |||
+ | If the actor is a player, returns its player number. Otherwise returns -1. | ||
+ | |||
+ | ==== IsPlayer ==== | ||
+ | |||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | Returns true if the actor is a player. | ||
+ | |||
+ | |||
+ | ===== Player information ===== | ||
+ | |||
+ | ==== PlayerName ==== | ||
+ | |||
+ | '' | ||
+ | |||
+ | Returns the player' | ||
+ | |||
+ | ==== GetPlayerTeam ==== | ||
+ | '' | ||
+ | |||
+ | Returns the player' | ||
+ | |||