Prototype/EntityGhost: Difference between revisions

From Official Factorio Wiki
Jump to navigation Jump to search
(Converted to SMW format)
(0.18.24: medium_build_sound, large_build_sound)
Line 2: Line 2:
The entity used for ghosts of entities.
The entity used for ghosts of entities.


{{Prototype TOC|entity-ghost|no-properties=true}}
{{Prototype TOC|entity-ghost}}
 
== Optional properties ==
Inherits all properties from [[Prototype/Entity]].
 
{{Prototype property|medium_build_sound|[[Types/Sound|Sound]]|optional=true}}
 
{{Prototype property|large_build_sound|[[Types/Sound|Sound]]|optional=true}}


== Example ==
== Example ==
Line 9: Line 16:
   name = "entity-ghost",
   name = "entity-ghost",
   flags = {"not-on-map"},
   flags = {"not-on-map"},
  --build_sound = { filename = "__core__/sound/place-ghost-small.ogg" },
  --medium_build_sound = { filename = "__core__/sound/place-ghost-medium.ogg" },
  --large_build_sound = { filename = "__core__/sound/place-ghost-large.ogg" },
   minable = { mining_time = 0, results={}},
   minable = { mining_time = 0, results={}},
},</syntaxhighlight>
},</syntaxhighlight>

Revision as of 17:26, 19 May 2020

Template:Prototype parent The entity used for ghosts of entities.

Template:Prototype TOC

Optional properties

Inherits all properties from Prototype/Entity.

Template:Prototype property

Template:Prototype property

Example

{
  type = "entity-ghost",
  name = "entity-ghost",
  flags = {"not-on-map"},
  --build_sound = { filename = "__core__/sound/place-ghost-small.ogg" },
  --medium_build_sound = { filename = "__core__/sound/place-ghost-medium.ogg" },
  --large_build_sound = { filename = "__core__/sound/place-ghost-large.ogg" },
  minable = { mining_time = 0, results={}},
},