Page 1 of 1
Detailed explaination of bos killed
Posted: 03 May 2011, 00:25
by Forboding Angel
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.
Re: Detailed explaination of bos killed
Posted: 03 May 2011, 10:56
by Deadnight Warrior
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.
Re: Detailed explaination of bos killed
Posted: 03 May 2011, 11:03
by Forboding Angel
Oh nice! thanks
Apparently explode is what I was looking for.
Re: Detailed explaination of bos killed
Posted: 03 May 2011, 11:05
by knorke
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
Re: Detailed explaination of bos killed
Posted: 04 May 2011, 16:37
by KDR_11k
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.
Re: Detailed explaination of bos killed
Posted: 04 May 2011, 21:41
by Forboding Angel
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
Posted: 04 May 2011, 21:51
by smoth
It isn't that different.