Jump to content
Sign in to follow this  
nikiller

setSpeaker locality?

Recommended Posts

hi,

 

Wiki do not specify setSpeaker locality. Somebody know if it is global or local?

 

I spawn a unit with:

_selectedclass createUnit [_safepos, _grp, '[this] execVM "initspawned.sqf"', 0.7, "PRIVATE"];

And then I setSpeaker the spawned unit in initspawned.sqf who is executed on all connected clients in multiplayer:

_unit = _this select 0;

_unit enableSimulationGlobal false;

_unit setSpeaker "NoVoice";
_unit setMimic "danger";

if (local _unit) then
{
	_unit call nik_fnc_weapon;
};

if (hasInterface) then 
{
	0 = [_unit] execVM "face.sqf";
	0 = [_unit] execVM "voice.sqf";
};

_unit enableSimulationGlobal true;

I would like to know if I can setSpeaker my unit in the (local _unit) condition and if it will still be broadcasted to every clients?

 

thank you.

 

cya.

 

Nikiller.

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  

×