From d6ff2829178418fda28a2060da378b4e09be88ac Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Sat, 27 May 2017 21:29:46 +0100 Subject: localised functions, mobs floats on water only, damage_per_sec nodes hurt mobs --- api.txt | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'api.txt') diff --git a/api.txt b/api.txt index 43d0db7..dd56748 100644 --- a/api.txt +++ b/api.txt @@ -309,6 +309,14 @@ This function allows an attached player to fly the mob around using directional 'stand_animation' string containing movement animation e.g. "stand" +mobs:set_animation(self, name) + +This function sets the current animation for mob, defaulting to "stand" if not found. + + 'self' mob information + 'name' name of animation + + Certain variables need to be set before using the above functions: 'self.v2' toggle switch -- cgit v1.2.3