Warning: file_put_contents(/ff_84f91477d12eeae0b62a6e585c01609879ddec94bab4a4a9.php): failed to open stream: Permission denied in /home/ofpecsav/public_html/forum/Sources/Subs-ForumFirewall.php on line 1619
setObjectMaterial - OFPEC Scripting Command Reference | OFPEC The Editing Center

objectName setObjectMaterial [selectionNumber, material]

Operand types

objectName: Object
[selectionNumber, material] : Array

Type of returned value

Description

Sets material of object selection.
The selection number is defined through the hiddenselection[]={} array in the vehicle's config (starting with 0).

selectionNumber: Number
material: String

Used In

Arma3

Example

car setObjectMaterial [0,"A3Structures_FDataWindowswindow_set.rvmat"];

Advertisement