Ok, so I made this plugin... and today ran into a weird situation that hasn't happened on any other of my projects with this plugin. So I have a trigger that is called, when you perform a certain action. When this trigger from within the action is called, it does, but funny things happen. Here's an example:
Lets assume a Sprite has an instance bool "hair"
A Specific Sprite.Hair = True
MyPlugin.CallFunction (at this point, my function calls back with "MyPlugin.Trigger"
[/code:3jfna26x]
[code:3jfna26x]Conditions:
MyPlugin.Trigger // it triggers....but.....
> Sprite.Hair = True (grab the only Sprite that has a Bool that = True)
> Action: Perform whatever.[/code:3jfna26x]
DOESN'T WORK... It doesn't SEE any Sprite.Hair as = true... even though it's there!!!
Now.... if I leave it as this, it doesn't work.... but only with this one function, no matter how many times I try renaming it, moving it around in edittime, or whatever. It's very odd... HOWEVER... if I change my conditions to this:
[code:3jfna26x]Conditions:
MyPlugin.Trigger -> Wait [b]0[/b] serconds, then Call Function "Wierd"
On function "Wierd"
> Sprite.Hair = True (grab the only Sprite that has a Bool that = True)
Action: Perform whatever.[/code:3jfna26x]
THAT WORKS????!?!!!!! WHY?!?!?! NOW it see's it? Why not earlier? I don't understand. Shed some light perhaps?