GET FEATURE DATA: Difference between revisions
From Macros Wiki
Jump to navigationJump to search
Created page with "{{Up}} {{Command|syntax=GET_FEATURE_DATA <feature number> <parameter> <data> |description=:Get data relating to a given feature. |param1=<fe..." |
No edit summary |
||
| Line 13: | Line 13: | ||
:GET_FEATURE_DATA 3, ID, feature_id | :GET_FEATURE_DATA 3, ID, feature_id | ||
:GET_FEATURE_DATA 2, NAME, feature_name$ | :GET_FEATURE_DATA 2, NAME, feature_name$ | ||
Note: Feature Number is the number/index when looping over features from [[GET_NUM_FEAUTRES]], Feature ID is the actual ID to the feature. [[GET_NUM_FEATURES]] will iterate from 1 to number of features without gaps, Feature IDs are NOT guaranteed to be consecutive | |||
[[Category:Features]] | [[Category:Features]] | ||
Latest revision as of 20:16, 27 May 2026
Command
- GET_FEATURE_DATA <feature number> <parameter>
- Get data relating to a given feature.
Parameters
- <feature number>
- Feature number
- <parameter>
- Parameter (must be ID or NAME)
- For ID, this will be the feature ID. For name, this must be a string variable to get the feature name.
Example
- GET_FEATURE_DATA 3, ID, feature_id
- GET_FEATURE_DATA 2, NAME, feature_name$
Note: Feature Number is the number/index when looping over features from GET_NUM_FEAUTRES, Feature ID is the actual ID to the feature. GET_NUM_FEATURES will iterate from 1 to number of features without gaps, Feature IDs are NOT guaranteed to be consecutive