武装突袭3

武装突袭3

LK Campaign Hat
Unholy97 7 月 13 日 下午 12:12
Changing the Insignia Texture on the Hat
First of all, congratulations on the excellent mod!

I wanted to ask for some advice on how to change the texture of the insignia on the hat. I've tried various script-based solutions but haven't been successful so far.

Ideally, I'd like to be able to do this directly in the unit's init field, and if possible, in a way that works in multiplayer.

I’d like to thank anyone in advance who can provide a working solution.

Here is the code I tried:

_unit = _this; // in init

waitUntil {sleep 0.1; (headgear _unit) != "";};

_hat = headgear _unit;

if (!isNull _hat) then {
_hat setObjectTexture [0, "path of new texture"]; // camo1
} else {
hint "Error: headgear not found!";
};
< >
正在显示第 1 - 2 条,共 2 条留言
Lukin  [开发者] 7 月 16 日 上午 4:41 
I don't know how to change textures for gear without doing custom config class, but if you configure a custom hat, you can change it via camo1 selection
Unholy97 7 月 16 日 上午 7:07 
引用自 Lukin
I don't know how to change textures for gear without doing custom config class, but if you configure a custom hat, you can change it via camo1 selection

Thanks!!!!
< >
正在显示第 1 - 2 条,共 2 条留言
每页显示数: 1530 50