Consistency/data/entities/animals/boss_fish/tentacle_1.lua

10 lines
259 B
Lua
Raw Normal View History

2021-08-20 01:53:47 +00:00
dofile_once("data/scripts/lib/utilities.lua")
local entity_id = GetUpdatedEntityID()
local x, y, a = EntityGetTransform( entity_id )
local arc = 0.2
local angle = GameGetFrameNum() * 0.01
a = math.cos( angle ) * arc
EntitySetTransform( entity_id, x, y, a )