Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
PenguinEncounter (talk | contribs)
No edit summary
Tag: 2017 source edit
PenguinEncounter (talk | contribs)
JANK
Tag: 2017 source edit
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
== <code>events.DAMAGE</code>{{Upcoming|0.1.5}} ==
== conspicuous example code ==
{{#tag:syntaxhighlight|
function events.tick()
    <nowiki>--[[wiki.figuramc.org, </nowiki>{{FULLPAGENAME}} rev. {{REVISIONID}}<nowiki>]]</nowiki>
    models.model.Head:setVisible(false)
end
|lang=lua}}


Fires when the player takes damage.
= <code>HostAPI:setTitleTimes</code> =
{{Host only|kind=method}}
Configures the hold, fade-in, and fade-out durations of titles displayed on the screen.


Most post-processing effects were removed {{SinceMC|1.20.5}}
== Usage ==
{| class="wikitable"
! Arguments !! Return Type
|-
| <code>setTitleTimes(timesData {{type|Vector3}})</code>
| self {{type|HostAPI}}
|-
| <code>setTitleTimes(fadeInTime {{type|integer}}, stayTime {{type|integer}}, fadeOutTime {{type|integer}})</code>
| self {{type|HostAPI}}
|}


== Examples ==
<syntaxhighlight lang="lua">
<syntaxhighlight lang="lua">
function events.DAMAGE( --[[ i don't know the implementation :P ]] )
host:setTitleTimes(1, 1, 1)
    print "I took damage!!"   
end
</syntaxhighlight>
</syntaxhighlight>


: 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)
== See Also ==
<!-- idk -->

Latest revision as of 05:59, 9 October 2024

conspicuous example code

function events.tick()
    --[[wiki.figuramc.org, User:PenguinEncounter/sandbox rev. 565]]
    models.model.Head:setVisible(false)
end

HostAPI:setTitleTimes

This method is only available on the host.

For more information, see Pings.

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

Usage

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

Examples

host:setTitleTimes(1, 1, 1)

See Also