Hey guys! Hopefully someone can help me out.
I'm trying to create a system for activating/deactivating creatures in an environment. The way I would like it to function is:
-Player enters trigger, triggers sends event to an activation manager.
-Trigger stores its name in string variable CurrentlyActive.
-Activation manager receives event, then compares an array with all possible string engagement names to CurrentlyActive. It continues to iterate through this array until the index equals the same string as CurrentlyActive.
-Once the condition is true, it activates a specific array of game objects. (I've already got the actual spawning part figured out)
Does anyone have a good handle on how to compare a string variable to a specific index within a string array?