Background for Skyrim SE
Member of the Quest script
voidfunctionSetObjectiveDisplayed(intaiObjective, boolabDisplayed=true, boolabForce=false)Native

Description

Wiki Description

Sets whether the specified quest objective is displayed or not.

Documentation Comment

Sets the specified objective to displayed or hidden - if abForce is true, will display the objective even if it has already been displayed


Caveats

CK Wiki - Notes

  • Targets under Quest Objective Data must be filled at the time of calling SetObjectiveDisplayed() or they will remain empty on subsequent calls to the function (they are not "refreshed" by this function even if filled by papyrus between calls).

Parameters

intaiObjective

CK Wiki Description

The objective to set as displayed or hidden.

boolabDisplayed=true

CK Wiki Description

Whether the objective is displayed or not.

boolabForce=false

CK Wiki Description

If this is true, the objective will be displayed, even if it was displayed before


Examples

; Display objective 10
MyQuest.SetObjectiveDisplayed(10)
; Display objective 15, even if it was displayed before
MyQuest.SetObjectiveDisplayed(15, abForce = true)

Auto-Generated Example

int myInt__aiObjective
bool myBool__abDisplayed
bool myBool__abForce

myQuest__toCallFunctionOn.SetObjectiveDisplayed(myInt__aiObjective, myBool__abDisplayed, myBool__abForce)

Related Pages


Additional References

View this function’s page on the Skyrim Creation Kit Wiki

Some data provided by the Skyrim Creation Kit Wiki. Licensed under the Creative Commons Attribution-ShareAlike license.