MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / aGoalCompleted

Function aGoalCompleted

scripts/DallasFuncs.cpp:5029–5033  ·  view source on GitHub ↗

$$ACTION Level Goals Set goal [l:LevelGoal] as [e:Completed] aGoalCompleted Set goal completion state Tells the goal system that the specified goal has been completed or not Parameters: LevelGoal: the goal to set Completed: whether or not the goal has been completed $$END */

Source from the content-addressed store, hash-verified

5027$$END
5028*/
5029void aGoalCompleted(int goal_index, int completed) {
5030 int flags = LGF_COMPLETED;
5031
5032 LGoal_Value(completed ? VF_SET_FLAGS : VF_CLEAR_FLAGS, LGSV_I_STATUS, &flags, goal_index);
5033}
5034
5035/*
5036$$ACTION

Callers 15

CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85
CallEventMethod · 0.85

Calls 1

LGoal_ValueFunction · 0.85

Tested by

no test coverage detected