Skip to content

pancake.getStat()

Mighty Pancake edited this page Apr 7, 2020 · 3 revisions

pancake.getStat(object, attribute)

Description

A simple function that returns the given attribute of the given object.

Inputs:

  • `object ` ← Which object’s attribute should be used.

  • attribute ← What attribute should be returned.

Outputs:

  • atribute_value ← What is the value of given attribute

Example:

pancake.getStat(player, "velocityX")

Gets the value of velocity on X axis of the player object.

Clone this wiki locally