HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Player Id problems...

10-19-2006, 03:19 AM#1
darkwulfv
Collapse JASS:
set udg_Athena = CreateUnit(bj_PLAYER_NEUTRAL_EXTRA, 'E001', x, y, face)

1. Yes, that is a Global. yes, it needs to be there.
2. I need this created unit to be made for Neutral Extra (whose player number is 14), but what is it's player Id? it doesn't want to accept 14 or bj_PLAYER_NEUTRAL_EXTRA. Anyone know how else to do it?
10-19-2006, 03:35 AM#2
Vexorian
that native takes a player value and you are giving it an integer value.
10-19-2006, 03:47 AM#3
darkwulfv
Yeah I figured that out after looking hard, but I still need the player Id for Neutral Extra and I have no idea what can retreive it.
10-19-2006, 04:38 AM#4
Vexorian
you already have it...

Player(bj_PLAYER_NEUTRAL_EXTRA)
10-19-2006, 06:15 AM#5
Captain Griffen
And why do you need to use the player neutral variable? It's not going to change, and it's a constant variable.
10-19-2006, 12:49 PM#6
Vexorian
readiblity's sake? There are many ways to get read of it in the final version anyways