Jump to content

Recommended Posts

hello

there i have a question about show video on billbord for players who are infront of it via add action, so we create a trigger and add below code on it:

vp is name of the Addaction object 

call{[vp, 
 "Pakhsh", 
 "\a3\ui_f\data\IGUI\Cfg\holdactions\holdAction_search_ca.paa", 
 "\a3\ui_f\data\IGUI\Cfg\holdactions\holdAction_connect_ca.paa", 
 "_this distance _target < 2", 
 "_caller distance _target < 2", 
 {}, 
 {}, 
 {
_video = "V\reza.ogv"; 
_screen = namayeshgar;
_screen setObjectTexture [0, _video]; 
[_video] remoteExec ["BIS_fnc_playVideo", ([0, -2] select isDedicated), true];
m1 setObjectTextureGlobal [0,"P\rs.jpg"];
m2 setObjectTextureGlobal [0,"P\ma.jpg"];
},  
 {hint "Laghve tanzim";}, 
 [], 
 5, 
 1000, 
 false, 
 false, 
 true 
 ] remoteExec ["BIS_fnc_holdActionAdd",[0,-2] select isDedicated,true];};

when i test this code i just find it the video is just visible by who call add action and not somebody else.

how i can do it for all players infront of that billbord?

Edited by sina alex
change value jip to true

Share this post


Link to post
Share on other sites
_screen setObjectTexture [0, _video]; 

should be

 

_screen setObjectTextureGlobal [0, _video]; 

 

  • Like 1

Share this post


Link to post
Share on other sites
16 minutes ago, sarogahtyp said:

_screen setObjectTexture [0, _video]; 

should be

 


_screen setObjectTextureGlobal [0, _video]; 

 

thank you i will test it

Share this post


Link to post
Share on other sites
1 hour ago, sarogahtyp said:

_screen setObjectTexture [0, _video]; 

should be

 


_screen setObjectTextureGlobal [0, _video]; 

 

one question, with this code:

[_video] remoteExec ["BIS_fnc_playVideo", ([0, -2] select isDedicated), true];

when we set billbord texture with our video file as global texture, do we have a duplicate on video play?

 

Share this post


Link to post
Share on other sites

should not. You r just assigning the texture on each client with setobjecttextureglobal and u r playing the video on each client using remoteexec. That way u ensure that the video is playing on each client locally.

 

It just could get weird if more than one player starts the video via the action menu. But idk what happens in that case. Just test it and report any problems here

  • Like 2

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

×