BIS fnc setObjectTexture: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Some wiki formatting)
 
(39 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Function|Comments=
{{RV|type=function
____________________________________________________________________________________________


| arma3 |Game name=
|game1= arma3
|version1= 1.00


|1.00|Game version=
|gr1= Object Manipulation


|gr1 = Object Manipulation |GROUP1=
|arg= global


|arg= glob |=
|eff= local


|eff= local |MPEFFECTS=
|descr= Set object textures.
____________________________________________________________________________________________


| Set object textures. |DESCRIPTION=
|s1= [object, textures] call [[BIS_fnc_setObjectTexture]]
____________________________________________________________________________________________


| [object, textures] call [[BIS_fnc_setObjectTexture]] |SYNTAX=
|p1= object: [[Object]]


|p1= object: [[Object]] |PARAMETER1=
|p2= textures: [[String]] or [[Array]] of [[String]]s


|p2= textures: [[String]] or [[Array]] of [[String|Strings]] |PARAMETER2=
|r1= [[Boolean]] - [[true]] when done


| [[Boolean]] - [[true]] when done |RETURNVALUE=
|x1= <sqf>[player, "#(rgb,8,8,3)color(0,0,1,1)"] call BIS_fnc_setObjectTexture;</sqf>
____________________________________________________________________________________________


|x1= <code><nowiki>[</nowiki>[[player]], "#(rgb,8,8,3)color(0,0,1,1)"] [[call]] [[BIS_fnc_setObjectTexture]];</code> |EXAMPLE1=
|x2= <sqf>
 
[
|x2= <code>[
vehicle player,
[[vehicle]] [[player]],
[
[
"#(rgb,8,8,3)color(1,0,0,1)",
"#(rgb,8,8,3)color(1,0,0,1)",
Line 34: Line 30:
"#(rgb,8,8,3)color(0,0,1,1)"
"#(rgb,8,8,3)color(0,0,1,1)"
]
]
] [[call]] [[BIS_fnc_setObjectTexture]];
] 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>


{{codecomment|// identical to:
|seealso= [[getObjectTextures]] [[setObjectTexture]] [[setObjectTextureGlobal]]
// [[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)"];}}</code> |EXAMPLE2=
____________________________________________________________________________________________
 
| [[getObjectTextures]], [[setObjectTexture]], [[setObjectTextureGlobal]] |SEEALSO=
}}
}}
<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:Functions|{{uc:setObjectTexture}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:setObjectTexture}}]]

Latest revision as of 11: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