User Tools

Site Tools


dragengine:modules:dragonscript:behavior_anchorelement

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
dragengine:modules:dragonscript:behavior_anchorelement [2025/03/10 20:14] – dragonlorddragengine:modules:dragonscript:behavior_anchorelement [2026/10/18 14:42] (current) – [ECBehaviorAnchorElement] dragonlord
Line 1: Line 1:
 {{tag>dragonscript behavior}} {{tag>dragonscript behavior}}
 <WRAP youarehere> <WRAP youarehere>
-[[:start|Start Page]] >> [[main|DragonScript Scripting Language]] >> [[abstractions#behavior_elementsquick_and_easy_development|Behavior Elements: Quick and Easy Development]] >> **ECBehaviorAnchorElement**+[[:start|Start Page]] >> [[main|DragonScript Scripting Language]] >> [[dragengine:modules:dragonscript:abstractions|Abstraction Layers: How you want to build your Game]] >> [[dragengine:modules:dragonscript:behavior_elements|Behavior Elements]] >> **ECBehaviorAnchorElement**
 </WRAP> </WRAP>
  
Line 12: Line 12:
  
 Anchoring elements allows to locate elements in a GameWorld using a unique name set by the mapper. This is useful for game commands send by conversations scripts. Anchoring elements allows to locate elements in a GameWorld using a unique name set by the mapper. This is useful for game commands send by conversations scripts.
 +
 +Since version 1.35 you can also use a group name. Using the group name the element is added to the named anchor group. This allows retrieving all elements sharing similar traits, for example triggers, typed pickups and so forth. The element can be anchored using unique name and group name at the same time.
  
 ====== Instance Counts ====== ====== Instance Counts ======
Line 20: Line 22:
  
 ===== anchorID ===== ===== anchorID =====
 +
 Sets the anchor name or empty string to not anchor. Sets the anchor name or empty string to not anchor.
 +
   * Full name: "anchorID"   * Full name: "anchorID"
   * Type: string   * Type: string
Line 26: Line 30:
   * Example (*.deeclass) <code xml><string name='anchorID'>Important Prop</string></code>   * Example (*.deeclass) <code xml><string name='anchorID'>Important Prop</string></code>
  
-===== Events =====+===== anchorGroupID ===== 
 + 
 +Sets the anchor group name or empty string to not anchor. 
 + 
 +  * Full name: "anchorGroupID" 
 +  * Type: string 
 +  * Default Value: empty string 
 +  * Example (*.deeclass) <code xml><string name='anchorGroupID'>Pickups</string></code> 
 + 
 +====== Events ======
  
 This behavior has no events This behavior has no events
dragengine/modules/dragonscript/behavior_anchorelement.1741637666.txt.gz · Last modified: by dragonlord