First of all i wonder why did this post deleted when i posted this yesterday. Was hoping to get a response today to work on my map more.
I don't want the hero corpse to slide...
Like when the hero dies to a unit collision hero kill trigger the corpse keeps sliding....
How to stop hero corpse from sliding?
Forum rules
Quicklinks: Download & Information • Create a new topic asking for help • All terraintype codes
Quicklinks: Download & Information • Create a new topic asking for help • All terraintype codes
How to stop hero corpse from sliding?
Last edited by Legit on Tue May 05, 2009 7:18 pm, edited 2 times in total.
- 3ICE
- Admin
- Posts: 2621
- Joined: Sat Mar 01, 2008 11:34 pm
- Realm: Europe
- Account: 3ICE
- Clan: 3ICE
- Location: Hungary
- Contact:
Re: How to stop hero corps from sliding?
Thank you for posting in the right section. (Posts in the wrong section are automatically deleted without exception.)
Please note that "corpse" is spelled with an "e" at the end. Use a spell checker if you are not 100% sure about your spelling.
To make dead heroes stop sliding, you could remove them from the
S unit group variable on death, and add them again when they get revived.
Or modify the script in the Slide trigger:
Slide
Line 6:to
Slide
Line 6:so it checks if the unit is alive before sliding it.
Please note that "corpse" is spelled with an "e" at the end. Use a spell checker if you are not 100% sure about your spelling.
To make dead heroes stop sliding, you could remove them from the

Or modify the script in the Slide trigger:

Line 6:
if(t==udg_Slide)then

Line 6:
if(t==udg_Slide)and(GetUnitState(u,UNIT_STATE_LIFE)>0)then
Re: How to stop hero corpse from sliding?
Sorry for the bad spelling anyways...
my slide script line 6 should be like this
if(t==udg_Slide)or(t==udg_Slide2)and(GetUnitState(u,UNIT_STATE_LIFE)>0)then
i think... if something goes wrong ill just post it and thanks for the help again, specially for this wonderful sliding system.
my slide script line 6 should be like this
if(t==udg_Slide)or(t==udg_Slide2)and(GetUnitState(u,UNIT_STATE_LIFE)>0)then
i think... if something goes wrong ill just post it and thanks for the help again, specially for this wonderful sliding system.
- 3ICE
- Admin
- Posts: 2621
- Joined: Sat Mar 01, 2008 11:34 pm
- Realm: Europe
- Account: 3ICE
- Clan: 3ICE
- Location: Hungary
- Contact:
Re: How to stop hero corpse from sliding?
You are good at coding JASS :)
Congratulations and thank you.
Congratulations and thank you.
Who is online
Users browsing this forum: No registered users and 6 guests