Jump to content
Sign in to follow this  
TAW_Yonose

Pop-up targets activates from computer

Recommended Posts

Okey so i need to connect 10 pop-up targets to a computer where i can choose between which i want to pop up.

I already got this, but dont know how to get it connecting to each others

_object = _this select 0;
_caller = _this select 1;
_id = _this select 2;
_target = _this select 3;

switch (_target) do {
case 1:
{
	sniperTarget1 = true;
	publicVariable "SniperTarget1";
};
case 2:
{
	sniperTarget2 = true;
	publicVariable "SniperTarget2";
};
case 3:
{
	sniperTarget3 = true;
	publicVariable "SniperTarget3";
};
case 4:
{
	sniperTarget4 = true;
	publicVariable "SniperTarget4";
};
case 5:
{
	sniperTarget5 = true;
	publicVariable "SniperTarget5";
};
case 6:
{
	sniperTarget6 = true;
	publicVariable "SniperTarget6";
};
case 7:
{
	sniperTarget7 = true;
	publicVariable "SniperTarget7";
};
case 8:
{
	sniperTarget8 = true;
	publicVariable "SniperTarget8";
};
case 9:
{
	sniperTarget9 = true;
	publicVariable "SniperTarget9";
};
case 10:
{
	sniperTarget10 = true;
	publicVariable "SniperTarget10";
};
};

Share this post


Link to post
Share on other sites

Not quite sure what you want to do, but if I understood you right, with an addAction.

I'm curious, why do you publicVariable the variables? I guess these controls animate? According to BIKI, both the effect and argument of animate is global.

Share this post


Link to post
Share on other sites

heres a video from someone:

with a:

targetname animate ["terc", 1]

Edited by SaltatorMortis

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  

×