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

[Trigger] Why this doesn't work.

Status
Not open for further replies.
Level 22
Joined
Feb 26, 2008
Messages
892
What does it tell you the problem is?
What is happening?
Where is your trigger? Can you post it?

It seems that the problem is with the GetRectCenter function. What you have there looks like some point... you can't get the center of a point....
 
Level 4
Joined
Sep 9, 2004
Messages
112
I think your in wrong forum boss, cuz that looks like jass to me and this is GUI.
 
Level 7
Joined
Nov 13, 2007
Messages
244
I the problem is number 168.

What I want to make is a hero revive trigger but I can't get it to revive my hero on its starting position only in the center of the map.

I think this is custom script not jass.

Sorry for delay, but I dont have wc3 rightnow so i can't post the trigger.

call ReviveHeroLoc(OURHERO, GetRectCenter(GetPlayerStartLoc), true )

only thing i need is that if you can fix it so its select the player start location.
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,255
The problem is that you can easilly do this in GUI with no errors (JASS not needed).
Just stick to GUI as unless your out to learn JASS, it will be hard to interface with and you will always get annoying compile errors.

Under the hero action catogry, there should be one labled revive or something simlar. That does exactly what you want in GUI form so you can use it more easilly.
 
Level 7
Joined
Nov 13, 2007
Messages
244
This way is much easier because I only need one trigger for all the heros to revive and it shows on my board thats why I like it this way.

Now going back to the problem:

call ReviveHeroLoc(OURHERO, GetRectCenter(GetPlayerStartLoc), true )

how do I fix it so selects hero hero starting location thats all I need help.
 
Level 4
Joined
Sep 9, 2004
Messages
112
This way is much easier because I only need one trigger for all the heros to revive and it shows on my board thats why I like it this way.

Now going back to the problem:

call ReviveHeroLoc(OURHERO, GetRectCenter(GetPlayerStartLoc), true )

how do I fix it so selects hero hero starting location thats all I need help.

I don't think you understand the simple point that I was trying to explain, you will likely find NO help here and if you would post it in the JASS forum your problem would have already been solved oh so long ago. So instead of being a jerk to me for trying to tell you that your in the wrong place and direct you to the right place you should maybe listen.
 
Status
Not open for further replies.
Top