Detailed explaination of bos killed
Moderator: Moderators
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Detailed explaination of bos killed
The killed params and stuff usually at the end of a unit script. i am looking for detailed explanation of all that and what is possible, etc.
- Deadnight Warrior
- Posts: 183
- Joined: 08 Jun 2009, 17:59
Re: Detailed explaination of bos killed
You can read about the Killed(severity, corpsetype) at COB Callins, and basically you can do anything in the Killed() function. When the function ends unit will be removed, and it's "explode as" explosion will occur (or self-d depending what caused unit to die). Just remember to set corpsetype to a value before function end.
Description of explode command is here at the bottom of the page.
Description of explode command is here at the bottom of the page.
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: Detailed explaination of bos killed
Oh nice! thanks 
Apparently explode is what I was looking for.

Apparently explode is what I was looking for.
Re: Detailed explaination of bos killed
if that was the reason for chosing bos:
afaik there is nothing that bos can do with Killed() that lua could not.
http://springrts.com/wiki/Animation-LuaCallins
http://springrts.com/wiki/Animation-LuaCallouts
afaik there is nothing that bos can do with Killed() that lua could not.
http://springrts.com/wiki/Animation-LuaCallins
http://springrts.com/wiki/Animation-LuaCallouts
Re: Detailed explaination of bos killed
corpsetype says how many times the wreckage that spawns gets damaged (replaced by the next stage of destruction). If your Killed function has a sleep in it that value is passed by return.
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: Detailed explaination of bos killed
Knorke, please note that only a few people are using lus at this time. Almost everyone is still using bos. Even ZK is still using bos. Hence, the need to know how to do it in bos. Seeing LUS examples won't help me because my unit scripts are in bos.
Re: Detailed explaination of bos killed
It isn't that different.