edited March 2014 in ORK Support
This is embarrassing, but I can't get the Call Function step working properly. Seems like it should be straight-forward.

I went into the demo, and added a Call Function step to NPC_Blue. The settings are:
Component Name: MyTestScript
Object: Actor
Actor: Player
Function Name: SayThis

I have a script named MyTestScript attached to Brown Pants. It has a tiny function called SayThis with a Debug.Log test.

However I get this error:
Method not found (MyTestScript): FunctionTest
UnityEngine.Debug:LogWarning(Object)
ORKFramework.Reflection.CallMethod:Call(Object)
ORKFramework.Events.Steps.CallFunctionStep:Continue(BaseEvent)
ORKFramework.Events.Steps.CallFunctionStep:Execute(BaseEvent)
ORKFramework.Events.BattleEvent:ExecuteNextStep()
ORKFramework.Events.BaseEvent:StepFinished(Int32)
ORKFramework.Events.Steps.ChangeStatusValueStep:Execute(BaseEvent)
ORKFramework.Events.BattleEvent:ExecuteNextStep()
ORKFramework.Events.BaseEvent:StepFinished(Int32)
ORKFramework.Events.Steps.ChangeStatusValueStep:Execute(BaseEvent)
ORKFramework.Events.BattleEvent:ExecuteNextStep()
ORKFramework.Events.BaseEvent:StepFinished(Int32)
ORKFramework.Events.Steps.ChangeStatusValueStep:Execute(BaseEvent)
ORKFramework.Events.BattleEvent:ExecuteNextStep()
ORKFramework.Events.BaseEvent:StartEvent()
ORKFramework.Events.BattleEvent:StartEvent(IEventStarter)
ORKFramework.BaseAction:PerformAction()
ORKFramework.BaseBattle:PerformAction(BaseAction)
ORKFramework.TurnBasedBattle:PerformNextAction3()
ORKFramework.d__0:MoveNext()
Here is a screenshot showing everything.

What am I overlooking?
Post edited by gamingislove on
  • Change your script from

    void SayThis()

    to

    public void SayThis()
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
  • Thanks. That did it. :)
Sign In or Register to comment.