BIS fnc setObjectTexture: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1 revision)
(Page filling)
Line 1: Line 1:
{{Function|= Comments
{{Function|= Comments
____________________________________________________________________________________________
____________________________________________________________________________________________
Line 6: Line 5:


|1.00|= Game version
|1.00|= Game version
|arg= glob |=
|eff= local |=
____________________________________________________________________________________________
____________________________________________________________________________________________


| <pre>/*
| Set object textures. |= Description
____________________________________________________________________________________________


Description:
| [object, textures] call [[BIS_fnc_setObjectTexture]] |= Syntax
Set object textures. To be used with BIS_fnc_MP.


Parameter(s):
|p1= object: [[Object]] |= Parameter 1
0: OBJECT
1: STRING or ARRAY - texture or array of textures


Returns:
|p2= textures: [[String]] or [[Array]] of [[String|Strings]] |= Parameter 2
BOOL
*/


</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
| [[Boolean]] - [[true]] when done |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_setObjectTexture]]; --> |= Syntax
|x1= <code><nowiki>[</nowiki>[[player]], "#(rgb,8,8,3)color(0,0,1,1)"] [[call]] [[BIS_fnc_setObjectTexture]];</code> |= Example 1


|p1= |= Parameter 1
|x2= <code>[
[[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]];


| |= Return value
{{codecomment|// 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)"];}}</code> |= Example 2
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <code></code> |=
| [[getObjectTextures]], [[setObjectTexture]], [[setObjectTextureGlobal]] |= See also
____________________________________________________________________________________________
 
| |= See also
 
}}
}}



Revision as of 17:46, 8 May 2018

-wrong parameter ("globargument") defined!-LELocal
Hover & click on the images for description

Description

Description:
Set object textures.
Execution:
call
Groups:
Uncategorised

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:
getObjectTexturessetObjectTexturesetObjectTextureGlobal

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

Notes

Bottom Section