Difference between revisions of "RegisterForTutorialEvent - ScriptObject"

From the Fallout4 CreationKit Wiki
Jump to navigation Jump to search
imported>Plplecuyer
 
imported>Qazaaq
(added category)
 
Line 1: Line 1:
[[Category:Scripting]]
[[Category:Papyrus]]
[[Category:Non-Delayed Native Functions]]
'''Member of:''' [[ScriptObject Script|ScriptObject]]
'''Member of:''' [[ScriptObject Script|ScriptObject]]


Registers this script to receive [[OnTutorialEvent - ScriptObject|OnTutorialEvent]].
Registers this script to receive [[OnTutorialEvent - ScriptObject|OnTutorialEvent]].


Only the script that registers for an event will receive it. Other scripts will not receive the event unless they also register for it. Once the event is received, you will be unregistered automatically.
Only the script that registers for an event will receive it.  
Other scripts will not receive the event unless they also register for it.  
Once the event is received, you will be unregistered automatically.


== Syntax ==
== Syntax ==
<source lang="papyrus">
<source lang="papyrus">
Function RegisterForTutorialEvent( String asEventName ) native
Function RegisterForTutorialEvent( String asEventName ) Native
</source>
</source>


Line 29: Line 28:
*[[UnregisterForTutorialEvent - ScriptObject]]
*[[UnregisterForTutorialEvent - ScriptObject]]
*[[OnTutorialEvent - ScriptObject]]
*[[OnTutorialEvent - ScriptObject]]
[[Category:Scripting]]
[[Category:Papyrus]]
[[Category:Non-Delayed Native Functions]]
[[Category:User Interface]]

Latest revision as of 21:05, 11 February 2018

Member of: ScriptObject

Registers this script to receive OnTutorialEvent.

Only the script that registers for an event will receive it. Other scripts will not receive the event unless they also register for it. Once the event is received, you will be unregistered automatically.

Syntax[edit | edit source]

Function RegisterForTutorialEvent( String asEventName ) Native

Parameters[edit | edit source]

  • asEventName - The name of the tutorial event to register for. See OnTutorialEvent for event names.

Return Value[edit | edit source]

None

Examples[edit | edit source]

; Register for Tutorial event
RegisterForTutorialEvent("HackingEntered")

See Also[edit | edit source]