Prototype/LandMine: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Set prototype parent)
Line 1: Line 1:
{{Prototype parent|Prototype/EntityWithHealth}}
== Basics ==
== Basics ==
Prototype type: '''land-mine'''
Prototype type: '''land-mine'''

Revision as of 15:49, 24 July 2019

Prototype definitions » PrototypeBase » Prototype/Entity » Prototype/EntityWithHealth » Prototype/EntityWithOwner » Prototype/LandMine


Basics

Prototype type: land-mine

A land mine. Extends Prototype/EntityWithHealth.

Mandatory properties

This prototype inherits all the properties from Prototype/EntityWithHealth.

picture_safe

Type: Types/Sprite

The sprite of the landmine before it is armed (just after placing).

picture_set

Type: Types/Sprite

The sprite of the landmine of a friendly force when it is armed.

trigger_radius

Type: Types/double

Optional properties

picture_set_enemy

Type: Types/Sprite

The sprite of the landmine of an enemy force when it is armed.

timeout

Type: Types/uint32

Default: 120

Time between placing and the landmine being armed, in ticks.

action

Type: Types/Trigger

ammo_category

Type: Types/string

Name of a Prototype/AmmoCategory.

force_die_on_attack

Type: Types/bool

Default: true

Force the landmine to kill itself when exploding.

trigger_force

Type: Types/ForceCondition

Default: "enemy"