Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: markfrancombe on May 08, 2014, 06:21:42 PM
-
Hi!
I have used the callMethod action successfully on a package called Bird flock from the Asset Store.
I send LandAll and birds will land on predefined spots.. lovely... works like a charm.
Another method available is ScareAll. So i set a trigger area and via trigger event get to a state like this. /(See image)
However as you can se I get this red warning
Error editing action
Ambiguous Matching in method resolution..
Needless to say this doesnt work... what does the warning mean?
The console is throwing...
NullReferenceException: Object reference not set to an instance of an object
HutongGames.PlayMaker.Actions.CallMethod.DoMethodCall () (at Assets/PlayMaker/Actions/CallMethod.cs:79)
HutongGames.PlayMaker.Actions.CallMethod.OnUpdate () (at Assets/PlayMaker/Actions/CallMethod.cs:56)
HutongGames.PlayMaker.FsmState.OnUpdate ()
HutongGames.PlayMaker.Fsm.UpdateState (HutongGames.PlayMaker.FsmState state)
HutongGames.PlayMaker.Fsm.Update ()
PlayMakerFSM.Update ()
regards
Mark
-
Never seen that one.
Are you looking for Invoke Method instead?
-
Hi,
Can you share the ScareAll methods you have? I'll then try to repro.
Bye,
Jean
-
Hi
If by share method you mean the script that im pointing to using this action?
Then yes I will send by PM later, better not publish here as its a paid package.
Im not sure if anything will work without The whole package though?
Will PM later
Mark
-
Hi Jean,
Sent you a PM with the script in it.. Did some digging, it MUST be something wrong with the ScareAll method.. cos I tried removing the first one (LandAll) and ONLY using ScareAll, same error...
Is this a PlatMaker thing now, or should I contact the dev?
Mark
-
@Lane, what is the diffrence between invoke method and call method?
-
My understanding is that Call Method can return information while Invoke Method just executes the method. You weren't specifying any parameters in the screenshot, so it seems like you don't need to return any data.
-
Hi,
Ok, I confirm it's not working, if you have signatures override, the solution is to name each method uniquely, like ScareALL and ScareAllWithDelay for the one with the two floats, then callMethod will be happier :)
hopefully this will be fixed in the next release of PlayMaker.
bye,
Jean