Nice and simple problem today. We have the function in DeusExPlayer:
exec function GoalAdd( Name goalName, String goalText, optional bool bPrimaryGoal ).
When I put in something like Player.GoalAdd('KitchenGoal', "Get me a sandwich", True); there is an error that says bad or missing parameter 1.
I tried something different:
- Code: Select all
function Timer()
{
local DeusExGoal goal;
local Name goalName;
local string goalText;
if(Flags.GetBool('Ready'))
{
goalName = 'KitchenGoal';
goalText = "Get me a sandwich";
goal = Player.AddGoal(goalName, True);
goal.SetText(goalText);
}
}
But walking into a flag that set 'Ready' in a test level didn't get the goal up.
How is the goal function not working?