BIS fnc setObjectTexture: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - " *\|= " to " ") |
Lou Montana (talk | contribs) m (Text replacement - " *\| *([Cc]omments|COMMENTS|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments \("local" or "global"\)|Multiplayer Effects \("local" or "global"\)|Multiplayer Execution \("server" o...) |
||
Line 1: | Line 1: | ||
{{Function | {{Function | ||
| arma3 | | arma3 | ||
|1.00 | |1.00 | ||
|gr1 = Object Manipulation | |gr1 = Object Manipulation | ||
|arg= glob | |arg= glob | ||
Line 11: | Line 11: | ||
|eff= local |MPEFFECTS= | |eff= local |MPEFFECTS= | ||
| Set object textures. | | Set object textures. | ||
| [object, textures] call [[BIS_fnc_setObjectTexture]] | | [object, textures] call [[BIS_fnc_setObjectTexture]] | ||
|p1= object: [[Object]] | |p1= object: [[Object]] | ||
|p2= textures: [[String]] or [[Array]] of [[String|Strings]] | |p2= textures: [[String]] or [[Array]] of [[String|Strings]] | ||
| [[Boolean]] - [[true]] when done | | [[Boolean]] - [[true]] when done | ||
|x1= <code><nowiki>[</nowiki>[[player]], "#(rgb,8,8,3)color(0,0,1,1)"] [[call]] [[BIS_fnc_setObjectTexture]];</code> | |x1= <code><nowiki>[</nowiki>[[player]], "#(rgb,8,8,3)color(0,0,1,1)"] [[call]] [[BIS_fnc_setObjectTexture]];</code> | ||
|x2= <code>[ | |x2= <code>[ | ||
Line 35: | Line 35: | ||
// [[vehicle]] [[player]] [[setObjectTexture]] [0, "#(rgb,8,8,3)color(1,0,0,1)"]; | // [[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]] [1, "#(rgb,8,8,3)color(0,1,0,1)"]; | ||
// [[vehicle]] [[player]] [[setObjectTexture]] [2, "#(rgb,8,8,3)color(0,0,1,1)"];}}</code> | // [[vehicle]] [[player]] [[setObjectTexture]] [2, "#(rgb,8,8,3)color(0,0,1,1)"];}}</code> | ||
| [[getObjectTextures]], [[setObjectTexture]], [[setObjectTextureGlobal]] | | [[getObjectTextures]], [[setObjectTexture]], [[setObjectTextureGlobal]] | ||
}} | }} | ||
Revision as of 23:48, 17 January 2021
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
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