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.

How to stop hero corpse from sliding?

New postby Legit on Mon May 04, 2009 6:41 pm

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.
Legit
 
Posts: 22
Joined: Wed Dec 31, 2008 3:38 pm

Re: How to stop hero corps from sliding?

New postby 3ICE on Tue May 05, 2009 8:35 am

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
User avatar
3ICE
Admin
 
Posts: 2105
Joined: Sat Mar 01, 2008 11:34 pm
Location: Hungary
Realm: US East
Account: 3ICE
Clan: 3ICE

Re: How to stop hero corpse from sliding?

New postby Legit on Tue May 05, 2009 7:32 pm

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.
Legit
 
Posts: 22
Joined: Wed Dec 31, 2008 3:38 pm

Re: How to stop hero corpse from sliding?

New postby 3ICE on Wed May 06, 2009 1:41 am

You are good at coding JASS :)
Congratulations and thank you.
ImageImageImageImageImage
Image
ImageImage
User avatar
3ICE
Admin
 
Posts: 2105
Joined: Sat Mar 01, 2008 11:34 pm
Location: Hungary
Realm: US East
Account: 3ICE
Clan: 3ICE


Return to 3ICE's Sliding System for RoC



Who is online

Users browsing this forum: No registered users and 2 guests

cron