Consistency/data/entities/animals/maggot_tiny/stain.lua

10 lines
315 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 = EntityGetTransform( entity_id )
local radius = 40
local t = EntityGetInRadiusWithTag( x, y, radius, "mortal" )
for i,v in ipairs( t ) do
EntityAddRandomStains( v, CellFactory_GetType( "material_darkness" ), 20 )
end