setFeatureType: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
m (Text replacement - "{{Command|=" to "{{Command|Comments=")
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Command|=
{{Command|Comments=
____________________________________________________________________________________________
____________________________________________________________________________________________


| arma3 |= Game
| arma3 |= Game


|1.68|= Game Version (number surrounded by NO SPACES)
|1.68|Game Version= (number surrounded by NO SPACES)


|arg= global |= Multiplayer Arguments
|arg= global |Multiplayer Arguments=


|eff= local |= Multiplayer Effects
|eff= local |Multiplayer Effects=
____________________________________________________________________________________________
____________________________________________________________________________________________


|  
| Enable/disable object as a feature/landmark. Possible feature types:
Set an object's feature type, which determines rendering behavior at view distance.<br><br>
* 0 - Feature disabled
 
* 1 - Object is always visible within object view distance
Feature types: <br>
* 2 - Object is always visible within terrain view distance
0: Object is rendered when in object view distance.<br>
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: Object has priority to be rendered at object view distance, and may be rendered slightly outside of object view distance.<br>
2. Object is always rendered (if in world view distance). <br>
|= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| object setFeatureType type |= Syntax
| object [[setFeatureType]] type |SYNTAX=
 
|p1= object [[Object]]|= Parameter 1
 
|p2= type [[Number]] - the desired feature type |= Parameter 2


| [[Boolean]] |= Return Value
|p1= object: [[Object]]|PARAMETER1=


|p2= type: [[Number]] - the desired feature type |PARAMETER2=


|mp= - |= Multiplayer Behaviour
| [[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> |= Example 1
____________________________________________________________________________________________
____________________________________________________________________________________________


| [[setViewDistance]], [[setObjectViewDistance]] |= See Also
| [[setViewDistance]], [[setObjectViewDistance]] |SEEALSO=


}}
}}
Line 57: Line 50:
[[Category:Scripting Commands|setFeatureType]]
[[Category:Scripting Commands|setFeatureType]]
[[Category:Scripting_Commands_Arma_3|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 23:39, 2 September 2019

Hover & click on the images for description

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
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.
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.