Skip to content

Player

Monsters, Inc.source

Derived from Entity, Movable, PowerupCapable

Fields

basecamp_button_entity

Entity?

Used in base camp to talk with the NPC's

source

coyote_timer

integer

can jump while airborne if greater than 0

source

emitted_light

Illumination?

source

hired_hand_name

integer

0-25 alphabetical index of hired hand names.

source

inventory

Inventory?

source

jump_lock_timer

integer

Increases when holding jump button in the air, set to max while jumping. If this isn't 0, a jump will only be registered if the jump button was not held on the previous frame.

source

linked_companion_child

integer

entity uid

source

linked_companion_parent

integer

entity uid

source

special_sound

SoundMeta?

For Lise System walking and looking up sounds

source

swim_timer

integer

Timer between strokes when holding jump button in water.

source

Methods

get_heart_color

function Player:get_heart_color(): Color

Returns Color

source

get_name

function Player:get_name(): string

Returns string

source

get_short_name

function Player:get_short_name(): string

Returns string

source

is_female

function Player:is_female(): boolean

Returns boolean

source

kapala_blood_amount

function Player:kapala_blood_amount(): integer

Returns integer

source

let_go

function Player:let_go()
source

set_heart_color

function Player:set_heart_color(hcolor: Color)
hcolor: Color
source