setFeatureType: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
Killzone Kid (talk | contribs) No edit summary |
||
Line 11: | Line 11: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | Enable/disable object as a feature/landmark. Possible feature types: | ||
* 0 - Feature disabled | |||
* 1 - Object is always visible within object view distance | |||
* 2 - Object is always visible within terrain view distance | |||
0 | The limit is 500 map/static objects and 200 dynamic objects including config features and auto features (flying helicopters, airplanes). When limit is reached, function returns false.|= Description | ||
1 | |||
2 | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| object setFeatureType type |= Syntax | | object [[setFeatureType]] type |= Syntax | ||
|p1= object [[Object]]|= Parameter 1 | |p1= object: [[Object]]|= Parameter 1 | ||
|p2= type [[Number]] - the desired feature type |= Parameter 2 | |p2= type: [[Number]] - the desired feature type |= Parameter 2 | ||
| [[Boolean]] |= Return Value | | [[Boolean]] |= Return Value | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= | |x1= Set a building to be always rendered: | ||
Set a building to be always rendered: | <code> building [[setFeatureType]] 2;</code> |= Example 1 | ||
<code> building setFeatureType 2;</code> |= Example 1 | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Revision as of 19:30, 15 April 2017
Description
- Description:
- Enable/disable object as a feature/landmark. Possible feature types:
- 0 - Feature disabled
- 1 - Object is always visible within object view distance
- 2 - Object is always visible within terrain view distance
- Groups:
- Uncategorised
Syntax
- Syntax:
- object setFeatureType type
- Parameters:
- object: Object
- type: Number - the desired feature type
- Return Value:
- Boolean
Examples
- Example 1:
- Set a building to be always rendered:
building setFeatureType 2;
Additional Information
- See also:
- setViewDistancesetObjectViewDistance
Notes
-
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note