OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: IKKINO on 27 Feb 2008, 18:49:14

Title: Markers visibility only for a single side
Post by: IKKINO on 27 Feb 2008, 18:49:14
any help for me?
thanks :D
Title: Re: Markers visibility only for a single side
Post by: IKKINO on 27 Feb 2008, 18:55:14
so marker visibility only for west side and not for east side
Title: Re: Markers visibility only for a single side
Post by: h- on 28 Feb 2008, 10:47:34
IKKINO, welcome to OFPEC :welcome:

A friendly reminder of our posting guidelines (http://www.ofpec.com/index.php?action=read_on&id=122).
We do not like double/consevutive posting so if you have something to add after a short time please modify your post instead of 'replying to yourself'.


Quote
for west side and not for east side
Is this by any change a MP related question?
Title: Re: Markers visibility only for a single side
Post by: CharlieReddog on 29 Feb 2008, 20:08:01
Regardless of whether this is MP related or not, here is the answer in SQS format This should be inserted into the init.sqs if you have one, or should make one from it. If you want to use SQF you can, but it's not vital for this particular exercise. If you have an init.sqf, then the code will obviously need changing to the sqf syntax.
Code: [Select]
?side player==west:goto "WEST"
?side player==east:goto "EAST"
#EAST
;;Hide West markers from East players

"MarkernameyouwanthidingfromEast" setmarkertype "empty"
goto "NEXT"
#WEST
;;Hide East markers from West players
"MarkernameyouwanthidingfromWest" setmarkertype "empty"

SQF format would be
Code: [Select]
switch (side player) do
{
    case "East":
{"MarkernameyouwanthidingfromEast" setmarkertype "empty";
};
   case "West":
{"MarkernameyouwanthidingfromWest" setmarkertype "empty";
};
};

That should work for you.
Title: Re: Markers visibility only for a single side
Post by: IKKINO on 02 Mar 2008, 16:26:31
thx a lot charlie and sorry administrator ...  :-[