#Interactability changing models

31 messages · Page 1 of 1 (latest)

delicate shale
#

Hello, is it possible to make it so when you interact with an object, you make it change models?

I know it's possible to make it drop items

#

Example closed crate ----> Player interacts with crate ----> crate drops item, and changes model to open crate

deep zinc
#

Hm

#

I can only really think of NPC rewards being a viable option to achieve this

#

I guess you could use a NPC Global Event hook

#

Wouldnt be scalable as in youd need a new unique crate every time

#

You could also make the object a rubble instead

#

Like the Christmas presents

#

So when you damage the object it drops an item

delicate shale
#

Do you mind sharing a guide about it if you have one?

deep zinc
#

I do not have a guide.

#

just look at how nelson did the christmas present

delicate shale
#

alright i'll try to thanks!

charred island
#

there might be a workaround for that

#

Like making two separate objects - one with binary state and the second one giving you the item on interaction

charred island
#

uhm you just make two different objects lol

delicate shale
#

Like Model_0 and Model_1?

charred island
#

no

#

separate objects with different IDs and Guids

#

and when you place it on map, you place both

#

so you will be able to open and close the crate just like in-game fridges and counters

#

and the second object will act as a dropper

#

not ideal but something at least

delicate shale
#

smart

#

I'll try that

#

But is it somehow possible to make the second object invisible?

charred island
#

yeah you just dont make a model for it

#

or for example you make the binary state object look like crate, and the dropper object look like items that lay inside the crate

#

so you can make several crate objects and several items objects and combine them for variations on the map