Prototype/Projectile: Difference between revisions
(Converted to SMW format) |
Muppet9010 (talk | contribs) (→Optional properties: add a note to hit_at_collision_position to elaborate on its effect) |
||
Line 20: | Line 20: | ||
{{Prototype property|hit_at_collision_position|[[Types/bool|bool]]|false|optional=true}} | {{Prototype property|hit_at_collision_position|[[Types/bool|bool]]|false|optional=true}} | ||
When true the entity is hit at the position on its collision box the projectile first collides with. When false the entity is hit at its own position. | |||
{{Prototype property|force_condition|[[Types/ForceCondition|ForceCondition]]|"all"|optional=true}} | {{Prototype property|force_condition|[[Types/ForceCondition|ForceCondition]]|"all"|optional=true}} |
Revision as of 16:06, 23 November 2019
Template:Prototype parent Entity with limited lifetime that can hit other entities and has triggers when this happens.
Mandatory properties
This prototype inherits all the properties from Prototype/Entity.
Optional properties
Template:Prototype property When true the entity is hit at the position on its collision box the projectile first collides with. When false the entity is hit at its own position.
Template:Prototype property
Whenever an entity is hit by the projectile, this number gets reduced by the health of the entity. If the number is then below 0, the final_action
is applied and the projectile destroyed. Otherwise, the projectile simply continues to its destination.
Template:Prototype property Must be greater than or equal to 0.
Template:Prototype property Executed when the projectile hits something.
Template:Prototype property
Executed when the projectile hits something, after action
and only if the entity that was hit was destroyed. The projectile is destroyed right after the final_action.