Possible to make corpse of units such as footman have sight radius?

darkholy

New Member
Reaction score
6
i prefer not to use visibility modifier or use extra units to aid in the vision.
is there any setting i can change to make it such that both player and enemy can see the corpse?

another question: how long does it take to decay to become unraisable (corpse disappeared) ?
 

robinremue

Member
Reaction score
16
When a unit dies, just create something at the position of the dying unit, that is similar to a dummy, with the sole difference that it's permanent. (So invisible, locust and no abilities/attacks.)

Can't write it in a trigger at the moment, due to not having WE near me :) <3 laptop ;)
 

darkholy

New Member
Reaction score
6
i didnt want to use dummy but i guess ive got no other choice..

that will mean i've got to set an expiration timer to the dummy too.. since the corpse decays and disappears, i cant have the dummy to hang around too.

that wAS why i wanted to know how long does it takes to finish decay


if i can just set sight range of some kind to the corpse, that'll save me lots of trouble
 

Korolen

New User (Why do I keep getting those red bars?)
Reaction score
69
A corpse isn't a unit, so I don't think you can set it to the actual corpse.
Actually a corpse is a unit; it simply has the "dead" classification. Which I suppose makes it have corpse behavior, i.e. no sight.
 

Korolen

New User (Why do I keep getting those red bars?)
Reaction score
69
[freehand]
Code:
Events: Unit dies
Conditions: ...
Actions:
    Custom Script: local fogmodifier f
    Vision - Create a vision modifier
    Custom Script: set f = bj_lastCreatedFogModifier
    Wait until ((Triggering Unit) is equal to No Unit), checking every 1 seconds
    Custom Script: call DestroyFogModifier(f)
 
General chit-chat
Help Users

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top