How to stop hero corpse from sliding?

The perfect one step solution for creating Ice/Sliding Mazes in both Reign of Chaos and The Frozen Throne. It is the only decent system around and it even works in RoC, is lagfree, perfectly optimized, fast and reliable. The included TerrainKill feature frees you from the tedious task of creating a thousand kill-regions.
Legit
Posts: 22
Joined: Wed Dec 31, 2008 3:38 pm

How to stop hero corpse from sliding?

Unread post by Legit »

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....
Last edited by Legit on Tue May 05, 2009 7:18 pm, edited 2 times in total.

User avatar
3ICE
Admin
Posts: 2629
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?

Unread post by 3ICE »

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 t_ugr S unit group variable on death, and add them again when they get revived.

Or modify the script in the Slide trigger:
Slide Slide
Line 6:
    if(t==udg_Slide)then
to
Slide Slide
Line 6:
    if(t==udg_Slide)and(GetUnitState(u,UNIT_STATE_LIFE)>0)then
so it checks if the unit is alive before sliding it.
ImageImageImageImageImage
Image
ImageImage

Legit
Posts: 22
Joined: Wed Dec 31, 2008 3:38 pm

Re: How to stop hero corpse from sliding?

Unread post by Legit »

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.

User avatar
3ICE
Admin
Posts: 2629
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?

Unread post by 3ICE »

You are good at coding JASS :)
Congratulations and thank you.
ImageImageImageImageImage
Image
ImageImage

Post Reply

Who is online

Users browsing this forum: No registered users and 51 guests