Difference between revisions of "ModObjectiveGlobal - Quest"
m
→Syntax: changed value to GetValue() to make the function a little faster.
imported>Thingy Person (→Syntax) |
imported>Lisselli m (→Syntax: changed value to GetValue() to make the function a little faster.) |
||
Line 13: | Line 13: | ||
if aiObjectiveID >= 0 | if aiObjectiveID >= 0 | ||
if afTargetValue > -1 | if afTargetValue > -1 | ||
if (abCountingUp && aModGlobal. | if (abCountingUp && aModGlobal.GetValue() >= afTargetValue) || (!abCountingUp && aModGlobal.GetValue() <= afTargetValue) | ||
if (abCompleteObjective) | if (abCompleteObjective) | ||
SetObjectiveCompleted(aiObjectiveID) | SetObjectiveCompleted(aiObjectiveID) |