This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| dragengine:modules:dragonscript:behavior_anchorelement [2025/03/10 18:47] – created dragonlord | dragengine:modules:dragonscript:behavior_anchorelement [2026/10/18 14:42] (current) – [ECBehaviorAnchorElement] dragonlord | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| {{tag> | {{tag> | ||
| <WRAP youarehere> | <WRAP youarehere> | ||
| - | [[: | + | [[: |
| </ | </ | ||
| 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: " | * Full name: " | ||
| * Type: string | * Type: string | ||
| Line 26: | Line 30: | ||
| * Example (*.deeclass) <code xml>< | * Example (*.deeclass) <code xml>< | ||
| - | ===== Events ===== | + | ===== anchorGroupID ===== |
| + | |||
| + | Sets the anchor group name or empty string to not anchor. | ||
| + | |||
| + | * Full name: " | ||
| + | * Type: string | ||
| + | * Default Value: empty string | ||
| + | * Example (*.deeclass) <code xml>< | ||
| + | |||
| + | ====== Events | ||
| This behavior has no events | This behavior has no events | ||
| Line 65: | Line 78: | ||
| </ | </ | ||
| - | Using element class supporting adding behaviors the behavior can be used like this: | + | ====== Behavior Factory ====== |
| + | |||
| + | Using element class supporting adding behaviors the behavior can be added like this: | ||
| <code xml> | <code xml> | ||
| <?xml version=' | <?xml version=' | ||