Jump to content
Sign in to follow this  
b00tsy

simple way to set markeralpha for different sides.

Recommended Posts

I am working on a TVT mission and don't have much experience with that. So far all my missions were 1 side versus AI. I am running into a problem now to have markers visible only to 1 side at the start of the mission. I looked around and googled for answers and I did see some snippets that point me in the right direction (i think), but I still can't get it to work from a script or the init.

I have tried this in several variations (But I can not get it to work. ):

if ( playerSide == west) then {
  do {
     setmarkeralphalocal "test1" 0;

And I was thinking about adding (an 'else' setmarkeralphalocal "test1" 1), but the first part already does not work. Obviously I am doing something wrong and/or am missing something, but this is as far my very limited scripting knowhow goes, so I am stuck now.

The mission is a capture the base mission where both sides control an airfield and I want to have markers on the bases such as 'ammo point' etc, but only visible to the side that owns the airfield.

Any help would be appreciated. And by looking at the search results there are more people that struggle to find an easy way to set marker visibility for different sides to work so it will be helpful for others too no doubt.

Share this post


Link to post
Share on other sites

Turn -showScriptErrors on. Your syntax is messed up.

if ( playerSide == WEST) then {
    "test1" setmarkeralphalocal 0;
}else{
  //do something else
};

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  

×