Hooks hooksclient
Part of Cinematics
Hooks called by Cinematics
Summary
Hooks
Called on the client before the intro cinematic is queued, which happens when the local player loads a character for the first time since joining (unless the 'cinematic_intro' config is off) and whenever
Cinematics:play_intro is called.Hooks
Called on the client before the intro cinematic is queued, which happens when the local
player loads a character for the first time since joining (unless the 'cinematic_intro'
config is off) and whenever Cinematics:play_intro is called. Lets a schema change,
replace or suppress the intro.
Parameters
- intro Map the cinematic about to be queued, with the fields that
Cinematics:addtakes: title (name of the schema), subtitle (description of the schema), text (the credits phrase), arguments (author of the schema for the phrase), duration and delay. Handlers may change it in place - char_id Number ID of the character that has been loaded, nil if the intro is played on request
Returns
- Boolean/Map Return false to play no intro, or a table to queue that cinematic instead. Return nothing to keep
introand let the other handlers run