Game logic - Entity template – Ylands
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
=Description= | =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. | 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 [[Ylands Tile - Spawn entity template|'''Spawn Entity''']] instruction. | ||
*All atributes picked to the entity template will be transfered to the spawned entity. | *All atributes picked to the entity template will be transfered to the spawned entity. | ||
*Template remembers the entity in state when it was picked. Thus the entity can be removed after being picked. | *Attributes of picked entity then 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= | ||
*Entity | *[[Ylands Tile - Entity Template On Entity Spawn|On Entity Spawn]] | ||
= | =Related instructions= | ||
[[Ylands Tile - Spawn entity template|Spawn Entity From Template]] | |||
---- | ---- | ||
{{Ylands scripting navbox}} | {{Ylands scripting navbox}} |
Revision as of 17:18, 2 December 2018
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 then 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