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

Hi, need help with making unit no to decay

Status
Not open for further replies.
Level 16
Joined
Jan 8, 2015
Messages
464
As in title, tough not as in any thread i've read, i tested Can Raise, no decay, but it makes units go off like hero, it just fades away after 3 seconds, and i would rather to avoid decay time in game constants cuz it will mess up situation with other units which will die more frequently. I need it for few units which will be able to be revived by ressurect skill to enforce some usage of doctor/hospital ambulances, just few one time gained units, exacly 4 of them, all i want is to their bodies to stay undecayed for longer period of time like 3-5 minutes for Doc guy to arrive and revive them, game constants are out of the question cuz i would need to make like 30 units can raise no decay instead so they wont be around after death(footman grade units, no need for corpses to stay so long for these few more significant units) Why not heroes? well problem s would arise and there would be no use for that job that doc has and which one i want to expand.
In short from my damn wall of text - I want like 4 special units to be able to revive and stay on ground as bodies to ressurect for long periods of time, excluding all other units(so no game constants editing for all units)
 
Level 29
Joined
Sep 26, 2009
Messages
2,595
So if I understood that correctly, you want a unit's corpse to remain in game for longer period of time? If so, you could try catching when unit dies, wait a few seconds and then replace the dead unit with permanent corpse of the same unit-type as the dead unit.
 
Level 16
Joined
Jan 8, 2015
Messages
464
So if I understood that correctly, you want a unit's corpse to remain in game for longer period of time? If so, you could try catching when unit dies, wait a few seconds and then replace the dead unit with permanent corpse of the same unit-type as the dead unit.
Well i want to maintain corpse of such unit if it dies for long period of time to be later risen by ressurect, tough not by using Game Constants, cuz it would affect all units instead few i want get affected.
 
Well i want to maintain corpse of such unit if it dies for long period of time to be later risen by ressurect, tough not by using Game Constants, cuz it would affect all units instead few i want get affected.

Create the same exact unit-type stuck in its decay animation or some type of tombstone over the corpse. If after X amount of time the doctor doesnt get there, remove the tombstone. If they do make it, make a trigger that spawns the dead unit on its corresponding tombstone.
 
Level 11
Joined
Jun 2, 2013
Messages
613
You could change this... It may work but I don't know.

attachment.php
 

Attachments

  • Capture.PNG
    Capture.PNG
    8 KB · Views: 231
Level 29
Joined
Sep 26, 2009
Messages
2,595
I think he already uses that, but he wants specific units' corpses to remain in game for 3-5 minutes without changing the default corpse decay time in gameplay constants.
Thus creating a permanent corpse via triggers as I wrote in my post should fulfill that requirement.
 
Level 16
Joined
Jan 8, 2015
Messages
464
You could change this... It may work but I don't know.

attachment.php
This thing doesnt work, i tested that, it just makes unit diappear like hero, and i cannot rise it
EDIT: wait it may be cuz i've put in Reincarnation skills in that unit. It may work now wait.
EDIT2: no it makes them disappear, so it's not because that. I will change game constants now, it is workin and actualy is good on my map(it's rp so it will be even more realistic for corpses to stay longer, also massive amounts of units will be rather rare and i found spot for additional job here- coroner)
 
Last edited:
Status
Not open for further replies.
Top