HomeUser Control Panel (unavailable in archive)ForumsTutorialsArt GalleryResourcesMaps

Quick jass question - arrays

09-01-2009, 02:46 PM#1
Mendel
Hi,
Let's say i have this costum script: "call SetCameraZ (udg_CameraZ)" (CameraZ = integer variable)
Now this CameraZ doesn't have array...
now after i added for it arrays how can i indicate wich array to use there? hard to explain xD
i don't know jass :]
for example:


Pick every player in all players and do:
call SetCameraZ (udg_CameraZ [array - player number of picked player] )
how do i change this [array - player number of picked player]
in the right way?
09-01-2009, 05:54 PM#2
Komaqtion
call SetCameraZ (udg_CameraZ[GetPlayerId(GetEnumPlayer())])
I'd believe...

Though, there is no function called "SetCameraZ()"... Your own function ? :o
09-01-2009, 06:30 PM#3
Mendel
Quote:
Originally Posted by Komaqtion

Though, there is no function called "SetCameraZ()"... Your own function ? :o

Not exactly mine but a costum one :s
09-02-2009, 03:31 PM#4
Cheezeman
Well, be careful cause Player 1 (Red) in Jass is Player(0).
And Blue is Player(1).
09-02-2009, 05:03 PM#5
Mendel
ye i figured that out already, thanks anyway :] my camera is working perefctly :D