SimpleEntityWithDirection
Posted: Tue Jun 25, 2019 10:19 pm
I love SimpleEntityWithForce, it is my first choice whenever I want to add a new entity. But SimpleEntityWithForce does not work well with entities that are not square, or entities that have different rotations.
I propose a new entity prototype, SimpleEntityWithDirection. It is intended to be used for player buildings, so it includes most of the functionality of SimpleEntityWithForce.
SimpleEntityWithDirection
Supported LuaEntity properties:
direction
force
Basics
Extends Prototype/EntityWithHealth. Will be targeted by units/turrets.
Optional prototype properties:
animation
Type: Types/Animation4Way
Must have one of 'pictures' or 'animations' defined.
pictures
Type: Types/Sprite4Way
Must have one of 'pictures' or 'animations' defined.
force_visibility
Type: Types/ForceCondition
random_animation_offset
Type: Types/bool
render_layer
Type: Types/RenderLayer
I propose a new entity prototype, SimpleEntityWithDirection. It is intended to be used for player buildings, so it includes most of the functionality of SimpleEntityWithForce.
SimpleEntityWithDirection
Supported LuaEntity properties:
direction
force
Basics
Extends Prototype/EntityWithHealth. Will be targeted by units/turrets.
Optional prototype properties:
animation
Type: Types/Animation4Way
Must have one of 'pictures' or 'animations' defined.
pictures
Type: Types/Sprite4Way
Must have one of 'pictures' or 'animations' defined.
force_visibility
Type: Types/ForceCondition
random_animation_offset
Type: Types/bool
render_layer
Type: Types/RenderLayer