Detailed explaination of bos killed

Detailed explaination of bos killed

Discuss game development here, from a distinct game project to an accessible third-party mutator, down to the interaction and design of individual units if you like.

Moderator: Moderators

Post Reply
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Detailed explaination of bos killed

Post 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.
User avatar
Deadnight Warrior
Posts: 183
Joined: 08 Jun 2009, 17:59

Re: Detailed explaination of bos killed

Post 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.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Detailed explaination of bos killed

Post by Forboding Angel »

Oh nice! thanks :-)

Apparently explode is what I was looking for.
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: Detailed explaination of bos killed

Post 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
User avatar
KDR_11k
Game Developer
Posts: 8293
Joined: 25 Jun 2006, 08:44

Re: Detailed explaination of bos killed

Post 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.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: Detailed explaination of bos killed

Post 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.
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: Detailed explaination of bos killed

Post by smoth »

It isn't that different.
Post Reply

Return to “Game Development”