Game logic - Entity template – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " (={2,})([^ = ])(.*)([^ = ])(={2,}) * " to " $1 $2$3$4 $5 ")
m (Text replacement - " (\=+)([a-zA-Z0-9][^ ]+[a-zA-Z0-9])(\=+) " to " $1 $2 $3 ")
Line 6: Line 6:
*Template remembers the entity in state when it was picked. Thus the entity can be removed after being picked.
*Template remembers the entity in state when it was picked. Thus the entity can be removed after being picked.


=Properties=
= Properties =
=== Entity ===
=== Entity ===
*Entity to be spawned
*Entity to be spawned
*Click to edit entity properties
*Click to edit entity properties


=Entity template events=
= Entity template events =
*[[Ylands Tile - Entity Template On Entity Spawn|On Entity Spawn]]
*[[Ylands Tile - Entity Template On Entity Spawn|On Entity Spawn]]


=Related instructions=
= Related instructions =
*[[Ylands Tile - Spawn entity template|Spawn Entity From Template]]
*[[Ylands Tile - Spawn entity template|Spawn Entity From Template]]



Revision as of 15:39, 17 November 2021

Description

Template for spawning new entities - either items, NPCs or vehicles. All atributes (HP, color etc) set in entity template will be carried over to newly spawned entity. New entities are spawned using Spawn Entity instruction.

  • All atributes picked to the entity template will be transfered to the spawned entity.
  • Attributes of picked entity can be modified directly in the Template
  • Template remembers the entity in state when it was picked. Thus the entity can be removed after being picked.

Properties

Entity

  • Entity to be spawned
  • Click to edit entity properties

Entity template events

Related instructions