User:PenguinEncounter/sandbox: Difference between revisions

From FiguraMC
PenguinEncounter (talk | contribs)
No edit summary
Tag: 2017 source edit
PenguinEncounter (talk | contribs)
No edit summary
Tag: 2017 source edit
Line 1: Line 1:
== <code>events.DAMAGE</code>{{Upcoming|0.1.5}} ==
= <code>HostAPI:setTitleTimes</code> [host only] =
Configures the hold, fade-in, and fade-out durations of titles displayed on the screen.


Fires when the player takes damage.
== Invocation ==
 
{| class="wikitable"
Most post-processing effects were removed {{SinceMC|1.20.5}}
! Arguments !! Return Type
 
|-
<syntaxhighlight lang="lua">
| [[setTitleTimes]](timesData: [[Vector3]])
function events.DAMAGE( --[[ i don't know the implementation :P ]] )
| self ([[HostAPI]])
    print "I took damage!!"   
|-
end
| [[setTitleTimes]](fadeInTime: [[integer]], stayTime: [[integer]], fadeOutTime: [[integer]])
</syntaxhighlight>
| self ([[HostAPI]])
 
|}
: okay <span style="font-family:monospace;"><span style="opacity:50%;font-size:.8em;">animations.</span>[[User:PenguinEncounter|PenguinEncounter]]<span style="font-size:.8em;">.[[User talk:PenguinEncounter|talk]]</span></span> 23:49, 25 September 2024 (UTC)

Revision as of 17:09, 26 September 2024

HostAPI:setTitleTimes [host only]

Configures the hold, fade-in, and fade-out durations of titles displayed on the screen.

Invocation

Arguments Return Type
setTitleTimes(timesData: Vector3) self (HostAPI)
setTitleTimes(fadeInTime: integer, stayTime: integer, fadeOutTime: integer) self (HostAPI)