Enable/Disable Game Object
Posted: Wed Feb 03, 2016 1:23 pm
Is there a quick and dirty way to enable/disable game objects with Dialogue System in a conversation? I didn't see anything in the sequencer command reference/documentation (edit: it's there I just missed it). Obviously there's probably lots of different ways to do this with scripting and/or playmaker and other tools.
This could be very useful in a number of scenarios. One, for example, would be enabling a location marker on a map/mini-map later when a quest is assigned and disabling the marker when the quest is complete. It could also be useful in dialogue system cut scenes. It could also be used to remove an obstruction blocking a path after a level is complete...there's almost infinite uses for this. Once again, I'm not sure if something like this exists in the system by default. For my current, game there's a couple of ways I could do this, but they are all way more troublesome than if I could just drop in a sequencer or lua command. For example, I could use playmaker, a buggy mini-map asset, or create animations for each of my map markers and call an animation that moves the map marker into the map camera's view. Same thing could be done animating transparency...all of which would get the job done, but I'm looking for the best/most reliable workflow given that what I would be using it for is a task that will be done over, and over, and over.
This could be very useful in a number of scenarios. One, for example, would be enabling a location marker on a map/mini-map later when a quest is assigned and disabling the marker when the quest is complete. It could also be useful in dialogue system cut scenes. It could also be used to remove an obstruction blocking a path after a level is complete...there's almost infinite uses for this. Once again, I'm not sure if something like this exists in the system by default. For my current, game there's a couple of ways I could do this, but they are all way more troublesome than if I could just drop in a sequencer or lua command. For example, I could use playmaker, a buggy mini-map asset, or create animations for each of my map markers and call an animation that moves the map marker into the map camera's view. Same thing could be done animating transparency...all of which would get the job done, but I'm looking for the best/most reliable workflow given that what I would be using it for is a task that will be done over, and over, and over.