• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

Writing the Following Code Correctly:

Status
Not open for further replies.
Level 8
Joined
Sep 23, 2007
Messages
357
How would these two codes be written correctly?

set udg_PlayerHeight_Terrain[(Player Number of (Picked Player))] = GetLocationZ(udg_PlayerPosition[(Player Number of (Picked Player)))

and

call RemoveLocation(udg_PlayerPosition[(Player Number of (Picked Player))])
 
Level 37
Joined
Mar 6, 2006
Messages
9,243
set udg_PlayerHeight_Terrain[(Player Number of (Picked Player))] = GetLocationZ(udg_PlayerPosition[(Player Number of (Picked Player)))
call RemoveLocation(udg_PlayerPosition[(Player Number of (Picked Player))])
set udg_PlayerHeight_Terrain[GetPlayerId(GetEnumPlayer())+1] = GetLocationZ(udg_PlayerPosition[GetPlayerId(GetEnumPlayer())+1])

call RemoveLocation(udg_PlayerPosition[GetPlayerId(GetEnumPlayer())+1])
 
Status
Not open for further replies.
Top