4 Sonarbubble constructor
5 Use this with parameters x,y,size
7 function Sonarbubble
:new(o
)
13 function Sonarbubble
:followEntity(hauntedEntity
)
15 self
.hauntedEntity
= hauntedEntity
18 function sonar_update()
19 for i
,s
in ipairs(sonarbubbles
) do
21 s
.x
= entities
[s
.hauntedEntity
].body
:getX()
22 s
.y
= entities
[s
.hauntedEntity
].body
:getY()