#How can I change the model in game

1 messages · Page 1 of 1 (latest)

junior yarrow
#

I am working on a reptilian expansion addon that adds geckos which tails fall off when low health. Can I get some help or tips on how I can do that?

lavish sentinel
#

Ok I think this would work

I think you can use an animation controller to check when it changes health, then run an event to summon an item and change the geo with a variant

small marlin
#

or use query.health directly in the render controller

#

and spawn_entity component

lavish sentinel
small marlin
#

ok now I am confused didn't we answer that a second ago 🤨

#

but I can't find it in questions

#

I might need some sleep

junior yarrow
#

Thank youu,

#

I will come back if it didn’t work

lavish sentinel
small marlin
#

ah thanks I was starting to get worried 😅 😂

lavish sentinel
river mesa
junior yarrow
#

But how would I make the item come out tho

river mesa
#

Oh the tail is supposed to be an item

junior yarrow
#

Yes

#

What I’m looking for is when you sheer a sheep u get wool

river mesa
#

When the health is low use an event to summon an item or load a structure with the item in it

junior yarrow
#

When you hit a gecko it drops its tail and the model changes

small marlin
#

You could make the tail drop with an animation and make the gecko spawn a dummy tail that would move on its own like in irl and eventually die dropping the tail item

river mesa
junior yarrow
#

I don’t want an entity, I want it to simply drop its tail

small marlin
#

Or just a render controller and spawn_entity component

small marlin
lavish sentinel
#

Then use a spawn entity component or a command

small marlin
#

Yea

#

Check for its life