Game logic - Entity label – Ylands

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Text replacement - "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|19}}}}" to "{{DEFAULTSORT:{{#sub:{{PAGENAME}}|13}}}}")
 
(14 intermediate revisions by 2 users not shown)
Line 1: Line 1:
=Description=
=Description=
Entity label is a collection of entities. Entities can be easily added or removed from a label, either by editing the label properties or trough visual scripting instructions. It is possible to check whenever a entity is part of a label and utilize this information in a game script.
Entity label is a '''collection of entities'''. Entities can be easily added or removed from a label, either by editing the label properties or trough visual scripting instructions. It is possible to check whenever a entity is part of a label and utilize this information in a game script.


= Properties =
=== Entities ===
*List of entities belonging to current Label.
*Click '''+''' to add new entries and then use picker to select entity from scene.
= Notes =
*Each entity can be part of any number of Labels.  
*Each entity can be part of any number of Labels.  
*It is possible to constrain Trigger Zones to react only to entities with specific label.  
*It is possible to constrain [[Ylands:Game logic - Trigger zone|'''Trigger Zone''']] to react only to entities with specific label.  
*It is possible to constrain Event Listener to listen events only on entities with specific Label.  
*It is possible to constrain [[Ylands:Game logic - Event listener|'''Event Listener''']] to listen events only on entities with specific Label.  
*Label collection is dynamic. It is possible to add/remove entities during play.
*Label collection is dynamic. It is possible to add/remove entities during play.
'''Notes:'''
*New entities assigned trough script are put at the end of the list.
*New entities assigned trough script are put at the end of the list.
*Entities removed from the world (destroyed/exchanged for a corpse) will remove themselves from associated Labels automatically.
*Entities removed from the world (destroyed/exchanged for a corpse) will remove themselves from associated Labels automatically.
*Any player after death/respawn is not removed from the world so he keeps himself in all associated Labels.
*Any player after death/respawn is not removed from the world so he keeps himself in all associated Labels.


=Properties=
= Entity label events =
===Entities===
*[[Ylands:Tile - Entity label On Entity Added-Removed|On Entity Added / Removed]]
*List of entities belonging to current Label.
*[[Ylands:Tile - Entity label On Count Changed|On Count Changed]]
*Click '''+''' to add new entries and then use picker to select entity from scene.
 
=Entity label events=
*[[Ylands Tile - Entity label On Entity Added-Removed|On Entity Added / Removed]]
*[[Ylands Tile - Entity label On Count Changed|On Count Changed]]


=Related instructions=
= Related instructions =
===Entity label===
=== Entity label ===
*[[Ylands Tile - Add-Remove entity to label|Add / Remove entity]]
*[[Ylands:Tile - Add-Remove entity to label|Add / Remove entity]]
*[[Ylands Tile - Get label entities|Get entities]]
*[[Ylands:Tile - Get label entities|Get entities]]
*[[Ylands Tile - Get label entity count|Get entity count]]
*[[Ylands:Tile - Get label entity count|Get entity count]]


===Entities===
=== Entities ===
*[[Ylands Tile - Attach-Remove entity label|Attach / Remove entity label]]
*[[Ylands:Tile - Attach-Remove entity label|Attach / Remove entity label]]
*[[Ylands Tile - Get entity labels|Get entity labels]]
*[[Ylands:Tile - Get entity labels|Get entity labels]]
*[[Ylands Tile - Has entity label| Has entity label]]
*[[Ylands:Tile - Has entity label| Has entity label]]




----
----
{{Ylands scripting navbox}}
{{Navbox/Ylands}}
{{DEFAULTSORT:{{#sub:{{PAGENAME}}|13}}}}
 
[[Category: Game Logic]]
[[Category: Ylands 0.10]]

Latest revision as of 14:21, 24 November 2023

Description

Entity label is a collection of entities. Entities can be easily added or removed from a label, either by editing the label properties or trough visual scripting instructions. It is possible to check whenever a entity is part of a label and utilize this information in a game script.

Properties

Entities

  • List of entities belonging to current Label.
  • Click + to add new entries and then use picker to select entity from scene.

Notes

  • Each entity can be part of any number of Labels.
  • It is possible to constrain Trigger Zone to react only to entities with specific label.
  • It is possible to constrain Event Listener to listen events only on entities with specific Label.
  • Label collection is dynamic. It is possible to add/remove entities during play.
  • New entities assigned trough script are put at the end of the list.
  • Entities removed from the world (destroyed/exchanged for a corpse) will remove themselves from associated Labels automatically.
  • Any player after death/respawn is not removed from the world so he keeps himself in all associated Labels.

Entity label events

Related instructions

Entity label

Entities