BIS fnc setObjectTexture: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1 revision)
m (Some wiki formatting)
 
(48 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{RV|type=function


{{Function|= Comments
|game1= arma3
____________________________________________________________________________________________
|version1= 1.00


| arma3 |= Game name
|gr1= Object Manipulation


|1.00|= Game version
|arg= global
____________________________________________________________________________________________


| <pre>/*
|eff= local


Description:
|descr= Set object textures.
Set object textures. To be used with BIS_fnc_MP.


Parameter(s):
|s1= [object, textures] call [[BIS_fnc_setObjectTexture]]
0: OBJECT
1: STRING or ARRAY - texture or array of textures


Returns:
|p1= object: [[Object]]
BOOL
*/


</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
|p2= textures: [[String]] or [[Array]] of [[String]]s
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_setObjectTexture]]; --> |= Syntax
|r1= [[Boolean]] - [[true]] when done


|p1= |= Parameter 1
|x1= <sqf>[player, "#(rgb,8,8,3)color(0,0,1,1)"] call BIS_fnc_setObjectTexture;</sqf>


| |= Return value
|x2= <sqf>
____________________________________________________________________________________________
[
 
vehicle player,
|x1= <code></code> |=
[
____________________________________________________________________________________________
"#(rgb,8,8,3)color(1,0,0,1)",
 
"#(rgb,8,8,3)color(0,1,0,1)",
| |= See also
"#(rgb,8,8,3)color(0,0,1,1)"
]
] call BIS_fnc_setObjectTexture;
</sqf>
identical to:
<sqf>
vehicle player setObjectTexture [0, "#(rgb,8,8,3)color(1,0,0,1)"];
vehicle player setObjectTexture [1, "#(rgb,8,8,3)color(0,1,0,1)"];
vehicle player setObjectTexture [2, "#(rgb,8,8,3)color(0,0,1,1)"];
</sqf>


|seealso= [[getObjectTextures]] [[setObjectTexture]] [[setObjectTextureGlobal]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: MP|{{uc:setObjectTexture}}]]
[[Category:Functions|{{uc:setObjectTexture}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:setObjectTexture}}]]

Latest revision as of 12:47, 13 July 2022

Hover & click on the images for description

Description

Description:
Set object textures.
Execution:
call
Groups:
Object Manipulation

Syntax

Syntax:
[object, textures] call BIS_fnc_setObjectTexture
Parameters:
object: Object
textures: String or Array of Strings
Return Value:
Boolean - true when done

Examples

Example 1:
[player, "#(rgb,8,8,3)color(0,0,1,1)"] call BIS_fnc_setObjectTexture;
Example 2:
[ vehicle player, [ "#(rgb,8,8,3)color(1,0,0,1)", "#(rgb,8,8,3)color(0,1,0,1)", "#(rgb,8,8,3)color(0,0,1,1)" ] ] call BIS_fnc_setObjectTexture;
identical to:
vehicle player setObjectTexture [0, "#(rgb,8,8,3)color(1,0,0,1)"]; vehicle player setObjectTexture [1, "#(rgb,8,8,3)color(0,1,0,1)"]; vehicle player setObjectTexture [2, "#(rgb,8,8,3)color(0,0,1,1)"];

Additional Information

See also:
getObjectTextures setObjectTexture setObjectTextureGlobal

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