setObjectTexture: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{Command|= Comments | |||
____________________________________________________________________________________________ | |||
| ofpr |= Game name | |||
|1.75|= Game version | |||
____________________________________________________________________________________________ | |||
| Textures object selection with texture named in array. Array has the form [selection number,"Texture"]. The selection number is defined through the [[hiddenselection]][]={} array in the vehicle's config (starting with 0). |= Description | |||
____________________________________________________________________________________________ | |||
''' | | object '''setObjectTexture''' texture |= Syntax | ||
|p1= object: [[Object]] |= Parameter 1 | |||
|p2= texture: [[Array]] |= Parameter 2 | |||
| [[Nothing]] |= Return value | |||
____________________________________________________________________________________________ | |||
|x1= <pre>_objectname setobjecttexture [0,"\pboname\texture.paa"] | |||
_objectname setobjecttexture [1,"\pboname\texture2.paa"] | |||
Notes: In MP this command has only local effect. If you want to change a texture on all clients, you have to execute this command on each client. This command has also a bug: when a saved game is loaded the texture you have set will disappear and needs to be reset.</pre> |= Example 1 | |||
____________________________________________________________________________________________ | |||
| |= See also | |||
}} | |||
<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:Scripting Commands|SETOBJECTTEXTURE]] | |||
[[Category:Scripting Commands OFP 1.96|SETOBJECTTEXTURE]] | |||
[[Category:Scripting Commands ArmA|SETOBJECTTEXTURE]] | |||
Revision as of 23:24, 1 August 2006
Description
- Description:
- object setObjectTexture texture
- Groups:
- Uncategorised
Syntax
- Syntax:
- Nothing
- Parameters:
- object: Object
- texture: Array
- Return Value:
- Return value needed
Examples
- Example 1:
_objectname setobjecttexture [0,"\pboname\texture.paa"] _objectname setobjecttexture [1,"\pboname\texture2.paa"] Notes: In MP this command has only local effect. If you want to change a texture on all clients, you have to execute this command on each client. This command has also a bug: when a saved game is loaded the texture you have set will disappear and needs to be reset.
Additional Information
- See also:
- See also needed
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