Entity: Difference between revisions
mNo edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{Stub}} | {{Stub}} | ||
An entity is any dynamic object in the game. | An entity is any dynamic object in the game, except for those listed below. Each entity can have up to two [[Arx scripting language|scripts]] attached - one for the entity class and one for the entity instance. | ||
Entities are separated into the player entity, [[:Category:Items|items]], [[:Category:NPCs|NPCs]], [[:Category:Fixed entities|props]], [[:Category:Cameras|cameras]] and [[:Category:marker|markers]]. | Entities are separated into the player entity, [[:Category:Items|items]], [[:Category:NPCs|NPCs]], [[:Category:Fixed entities|props]], [[:Category:Cameras|cameras]] and [[:Category:marker|markers]]. | ||
= Non-entities = | |||
The following dynamic objects are not backed by any entities and cannot be scripted: | |||
==== Lights ==== | |||
Lights are part of the the level and cannot be scripted or created dynamically. This includes fireplaces and torches on walls, but not {{EntityClass|torch}} items. Some lights respond to the {{Spell|ignite}} and {{Spell|douse}} spells and can be turned on or off by combining certain items with them using {{Action|interact}}. | |||
==== Arrows ==== | |||
Arrows shot by the player use the <code>graph/obj3d/interactive/items/weapons/arrow/arrow.teo</code> 3D object from the {{EntityClass|arrow}} item but are non-interactive except for damaging and being stopped by the first entity or scene mesh that they hit. | |||
==== [[Zone]]s ==== | |||
Zones trigger script events but cannot be scripted themselves for created dynamically as they are part of the level. | |||
= Entity classes = | |||
= Entity instances = | |||
== Entity IDs == |
Revision as of 18:08, 24 April 2020
An entity is any dynamic object in the game, except for those listed below. Each entity can have up to two scripts attached - one for the entity class and one for the entity instance.
Entities are separated into the player entity, items, NPCs, props, cameras and markers.
Non-entities
The following dynamic objects are not backed by any entities and cannot be scripted:
Lights
Lights are part of the the level and cannot be scripted or created dynamically. This includes fireplaces and torches on walls, but not Torch items. Some lights respond to the Ignite () and Douse () spells and can be turned on or off by combining certain items with them using Interact (Double Click
).
Arrows
Arrows shot by the player use the graph/obj3d/interactive/items/weapons/arrow/arrow.teo
3D object from the item but are non-interactive except for damaging and being stopped by the first entity or scene mesh that they hit.
Zones
Zones trigger script events but cannot be scripted themselves for created dynamically as they are part of the level.