This gadget:
https://code.google.com/p/evolutionrts/ ... _cover.lua
For whatever reason, renders stealth=true, in unitdefs to be completely not working, however, the gadget itself works perfectly. Units scurry under trees and get stealth + cloak.
Can someone please help me fix it (or fix it for me?)? Thank you!
Help please! Gadget is interfering with stealth=true,
Moderator: Moderators
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: Help please! Gadget is interfering with stealth=true,
Replace:
With:
Note: Untested
Code: Select all
function unhideUnit (uID)
Spring.SetUnitCloak (uID, false ,2)
Spring.SetUnitStealth (uID, false)
end
Code: Select all
function unhideUnit (uID)
Spring.SetUnitCloak (uID, false ,2)
if not UnitDefs[Spring.GetUnitDefID(uID)].stealth then
Spring.SetUnitStealth (uID, false)
end
end
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: Help please! Gadget is interfering with stealth=true,
Yep, that did the trick. Thanks nio
I'm not sure if I every thanked you for the little gadget I was working on for destroying trees under buildings etc, but, thanks for that too
I'm not sure if I every thanked you for the little gadget I was working on for destroying trees under buildings etc, but, thanks for that too