OnLooksMenuEvent - ScriptObject

From the Fallout4 CreationKit Wiki
Revision as of 17:42, 17 November 2015 by imported>Plplecuyer (→‎Parameters)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Member of: ScriptObject

Event called to trigger flavor dialog in looks menu.

This event will only be sent to the specific script that registered for it. Other scripts will not receive the event unless they also register.

Syntax

Event OnLooksMenuEvent(int aiFlavor)

Parameters

  • aiFlavor - Context for the banter. One of the following values:
    • 0: General, uncontextualized banter
    • 1: Eye-related banter
    • 2: Nose-related banter
    • 3: Mouth-related banter
    • 4: Hair-related banter
    • 5: Beard-related banter
    • 10: Player has chosen to start editing the body.
    • 11: Player has chosen to finish editing the body.
    • 12: Player has resumed looking at the headtrack target (i.e. we’re back in face mode).

Example

Function SomeFunction()
  RegisterForLooksMenuEvent() ; Before we can use LooksMenuEvent we must register.
EndFunction

Event OnLooksMenuEvent(int aiFlavor)
    Debug.Trace("Looks menu flavor: " + aiFlavor)
endEvent

Notes

See Also