• 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.

[JASS] Very very simple local point question

Status
Not open for further replies.
Level 8
Joined
Aug 4, 2006
Messages
357
set p=udg_IF_HeroSpawnPoint()
Why are there parantheses? Is that a function that returns a location? I have never seen a function prefixed with udg_. I'm guessing you put the () in there by mistake, which would make udg_IF_HeroSpawnPoint a global location variable. Are you sure that you initialized udg_IF_HeroSpawnPoint? Otherwise you'd be setting p to nothing. I would also try sticking in some BJDebugMsg calls like
JASS:
call BJDebugMsg("HeroSpawn X: "+GetLocationX(udg_IF_HeroSpawnPoint()))
call BJDebugMsg("HeroSpawn Y: "+GetLocationY(udg_IF_HeroSpawnPoint()))
call BJDebugMsg("p X: "+GetLocationX(p))
call BJDebugMsg("p Y: "+GetLocationY(p))
 
Status
Not open for further replies.
Top