hai all once again..
once again this is a general question seeking a "possible or not" answer..
I want to make some map features of buildings that can be destroyed in parts..
1. can I make the health of a feature depend on another feature? such that if the lower floor is destroyed the upper floor gets destroyed too?
2. or for more detail, if there are no supporting features left the supported feature gets destroyed(multiple dependence)?
3. with the way one feature dies and becomes another feature(usually corpse, but can have multiple depths) can I have the spawn of the corpse animated? like a spawn animation.. then idle.
The buildings I want to create I want to make multiple levels of death, and for more than one height level.. so you can destroy/reclaim it incrementally.
4. Can the feature die in different ways depending on whether its reclaimed, or burned or damaged?
OK thats enough feature related questions for now. thanks.
I hate my ambition...
question about map features made up of multiple parts
Moderator: Moderators
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: question about map features made up of multiple parts
Wrt features, there is always the standard forum answer of "Lua it, noob!"
Features have death corpses. That is to say, when a feature dies, it turns into another feature, and you can chain these along indefinitely. You could even loop them if you were so inclined.
Others might have answers to the other questions.
Lathan Stanley combined many features into one coherent feature in black lake swamp. That might be worth taking a look at.
Features have death corpses. That is to say, when a feature dies, it turns into another feature, and you can chain these along indefinitely. You could even loop them if you were so inclined.
Others might have answers to the other questions.
Lathan Stanley combined many features into one coherent feature in black lake swamp. That might be worth taking a look at.
Re: question about map features made up of multiple parts
I'm sorry, I don't understand your sense of humour...Forboding Angel wrote:Wrt features, there is always the standard forum answer of "Lua it, noob!"
<snip>
Thanks, will check it out :DForboding Angel wrote: Lathan Stanley combined many features into one coherent feature in black lake swamp. That might be worth taking a look at.
Re: question about map features made up of multiple parts
Its not humor, all of those questions are YES. With Lua.
Re: question about map features made up of multiple parts
thanks, that's what I needed to hear to continueBeherith wrote:Its not humor, all of those questions are YES. With Lua.
Re: question about map features made up of multiple parts
The biggest problem I envisage is with hit volumes.
Re: question about map features made up of multiple parts
you read/set feature positions, read/set their health and kill/create them. you can also detect their death.
FeatureDestroyed() --> "featureID, allyTeam"
UnitFeatureCollision(colliderID, collideeID, crushKilled) -- needs SetWatchUnit for first and SetWatchFeature for second party
Sadly these callins do not give enough information to differentiate all possible ways to die for a feature. (i think) Might need some messing around to detect eg death by burning/reclaim
Unless there are forgotten parametes:enetheru wrote:4. Can the feature die in different ways depending on whether its reclaimed, or burned or damaged?
FeatureDestroyed() --> "featureID, allyTeam"
UnitFeatureCollision(colliderID, collideeID, crushKilled) -- needs SetWatchUnit for first and SetWatchFeature for second party
Sadly these callins do not give enough information to differentiate all possible ways to die for a feature. (i think) Might need some messing around to detect eg death by burning/reclaim
could also have an invisible feature an a visible but unclickable unit for that. Have the unitscript/gadget hide more and more pieces as the feature gets reclaimed. (could also have animation like parts breaking off instead of just disappear)The buildings I want to create I want to make multiple levels of death, and for more than one height level.. so you can destroy/reclaim it incrementally.
Re: question about map features made up of multiple parts
You don't need Lua.
Just chain features: In each featuredef, there is a field "featuredead", which points to another feature to turn into when dead.
Just chain features: In each featuredef, there is a field "featuredead", which points to another feature to turn into when dead.