Jump to content
Sign in to follow this  
d0nar

Multiplayer setObjectTexture?

Recommended Posts

Hi,

how can I use the command setObjectTexture in Multiplayer for setting a .paa as Texture of an Warfare Sign.

I tried following things,

writing following into the init of the sign

this setObjectTexture [0,'circular_target.paa'];

Result: only i was seeing the picture

tried this in the sqf called from the init of the sign:

_object = _this select 0;

_object setVehicleInit "this setObjectTexture [0,""circular_target.paa""]";
processInitCommands;

Result: only i was seeing the picture

i´m using the UNA target script, and the FORT BENNING map for making an sniper training place.

also a skeet shoot script is running.

in singleplayer i´m seeing the target´s in mp only the host is seeing the target.

i found community.bistudio.com/wiki/Multiplayer_framework but i´m not a scripting pro so i didn´t understood it and don´t know if it would be a solution for my problem

could sb. help me?

greetings Daniel

Share this post


Link to post
Share on other sites

use the MPF framework mate and call the command using remote execution, i had a similar issue in this thread here

so use this line to call the script on all clients and your local machine

[nil,nil,"loc" + "per",rSETOBJECTTEXTURE,_object,0,"circular_target.paa"] call RE;

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×