Login
Register
Menu
Home
Forum
JassDoc
Types
Functions
Variables
Help
Chat
Media
Search
Search posts
WC3 JASS.com
"The Jass Vault" plus vJASS and Zinc
WC3 Modding Information Center
Forum
Warcraft (WC3) Modding
Triggers & Scripting
WC3JASS.com
Jassdoc
[functions] GetPlayerName
Warcraft III:
Maps
Models
Skins
Icons
Spells / Systems
Tools
Tutorials
Snippets
JASS vJASS Spells and Systems
Tutorials
Chat @Discord
vJASS & Zinc Documentation
For the latest documentation about how it works vJASS and Zinc language layers for Warcraft III, please follow these links:
Jasshelper documentation
-
Zinc documentation
-
WC3 Optimizer documentation
This topic is the discussión abut the function
GetPlayerName
. You can see all the information about this function keyword
HERE
.
[functions] GetPlayerName
Jassdoc
Started by
City17
Views
374
Replies
0
Users
1
1
Pages:
1
Go Down
0 Members and 1 Guest are viewing this topic.
City17
Starter - level 2
Posts:
450
WC3 Models: 0
WC3 Tutorials: 0
WC3 Tools: 0
WC3 Maps: 0
WC3 Skins: 0
WC3 Icons: 0
WC3 Spells: 0
Reputation:
0
User
[functions] GetPlayerName
on:
April 07, 2022, 05:46:51 PM
returns the player name.
Example:
Code: Lua
-- assuming you play as player Red
local
name
=
GetPlayerName
(
Player
(
0
)
)
--> your player name as text
If the player is not present in the game or is one of the internal players, returns localized string + one-based player number (WorldEdit-like)
Example:
Code: Lua
local
me
=
GetPlayerName
(
Player
(
0
)
)
--> your player name as text
local
np
=
GetPlayerName
(
Player
(
PLAYER_NEUTRAL_PASSIVE
)
)
--> "Player 28"
«
Last Edit: April 07, 2022, 06:09:55 PM by City17
»
Print
Pages:
1
Go Up
« previous
next »
WC3 Modding Information Center
Forum
Warcraft (WC3) Modding
Triggers & Scripting
WC3JASS.com
Jassdoc
[functions] GetPlayerName
Suggested Topics
Jassdoc introduction
Started by
moyack
Replies: 3
Views: 4324
Jassdoc
Old Jass Functions
Started by
Jedi
Replies: 5
Views: 14903
General Jass Discussion
[reference] common.j
Started by
moyack
Replies: 40
Views: 59313
Jass Theory & Questions
[functions] BlzGetTriggerPlayerMouseX
Started by
moyack
Replies: 0
Views: 697
Jassdoc
[functions] BlzGetTriggerPlayerMouseY
Started by
moyack
Replies: 0
Views: 702
Jassdoc
PortaMx-SEF 1.54
|
PortaMx © 2008-2015
,
PortaMx corp.
Search
Username
Password
Always stay logged in
Forgot your password?