setFeatureType: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{Command|= ____________________________________________________________________________________________ | arma3 |= Game |1.68|= Game Version (number surrounded by NO SPACES...") |
m (template:command argument fix) |
||
(3 intermediate revisions by 3 users not shown) | |||
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= | ||
| [[ | |p1= object: [[Object]]|PARAMETER1= | ||
|p2= type: [[Number]] - the desired feature type |PARAMETER2= | |||
| | | [[Boolean]] |RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= | |x1= Set a building to be always rendered: | ||
Set a building to be always rendered: | <code> building [[setFeatureType]] 2;</code> |EXAMPLE1= | ||
<code> building setFeatureType 2;</code> |= | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[setViewDistance]], [[setObjectViewDistance]] |= | | [[setViewDistance]], [[setObjectViewDistance]] |SEEALSO= | ||
}} | }} | ||
Line 56: | Line 49: | ||
<!-- Appropriate categories go here e.g. [[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] --> | <!-- Appropriate categories go here e.g. [[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]] --> | ||
[[Category:Scripting Commands|setFeatureType]] | [[Category:Scripting Commands|setFeatureType]] | ||
[[Category:Scripting_Commands_Arma_3|setFeatureType]] | |||
<!-- CONTINUE Notes --> | |||
<dl class="command_description"> | |||
<dd class="notedate">Posted on October 10, 2017 - 16:18 (UTC)</dd> | |||
<dt class="note">[[User:Waffle SS.|Waffle SS.]]</dt> | |||
<dd class="note"> | |||
For world objects, command effect persists '''after mission restart'''. Map must be reloaded to automatically revert setting. | |||
</dd> | |||
</dl> | |||
<!-- DISCONTINUE Notes --> |
Revision as of 14:47, 7 April 2019
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
Bottom Section
- Posted on October 10, 2017 - 16:18 (UTC)
- Waffle SS.
- For world objects, command effect persists after mission restart. Map must be reloaded to automatically revert setting.