setFeatureType: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 11: Line 11:
____________________________________________________________________________________________
____________________________________________________________________________________________


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


|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 20:30, 15 April 2017

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