Baseless/helpers/CreateTurret.lua

18 lines
384 B
Lua
Raw Normal View History

2020-04-22 04:35:40 +00:00
function CreateTurret (type, prototype)
if CreateEntityWithHealth(
type,
MergeTables(
prototype,
{
attack_parameters = Baseless.AttackParameters.Stream(),
call_for_help_radius = 0,
folded_animation = Baseless.RotatedAnimation4Way,
}
)
) then
Baseless.AttackParameters.Stream(true)
return true
end
return false
end