Hello,
Is it possible to change hotspot in other scene?
example
Picked an item in Scene1 (added to inv, disabled hotspot, disabled visibility), went to Scene2 doing some action lost my item and item is supposed to went back to place in Scene1 and be active?
I want to make it this way:
Is this good way or you have other that is Built in AC
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
It's possible to access the data of other scenes, but it'd be very complicated to manipulate - you'd need to deserialize it, amend it, re-serialize, and then update.
One other way would be to place the Hotspot in both scenes, and make sure both of them have the same Constant ID number. You can then attach a script to transfer data from the previous scene with objects that share the same ID:
It's recommended, however, to instead rely on Variables to do this. For example, a Global Boolean named "Item is in scene A", that you set to False when picked up, and True if the item is lost in scene B. Scene A's OnLoad/OnStart cutscenes would then read this variable's value and enable/disable the Hotspot accordingly.