Home   Help Search Login Register  

Author Topic: Markers visibility only for a single side  (Read 993 times)

0 Members and 1 Guest are viewing this topic.

Offline IKKINO

  • Members
  • *
Markers visibility only for a single side
« on: 27 Feb 2008, 18:49:14 »
any help for me?
thanks :D

Offline IKKINO

  • Members
  • *
Re: Markers visibility only for a single side
« Reply #1 on: 27 Feb 2008, 18:55:14 »
so marker visibility only for west side and not for east side

Offline h-

  • OFPEC Site
  • Administrator
  • *****
  • Formerly HateR_Kint
    • OFPEC
Re: Markers visibility only for a single side
« Reply #2 on: 28 Feb 2008, 10:47:34 »
IKKINO, welcome to OFPEC :welcome:

A friendly reminder of our posting guidelines.
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?
Project MCAR   ---   Northern Fronts   ---   Emitter 3Ditor
INFORMATIVE THREAD TITLES PLEASE. "PLEASE HELP" IS NOT ONE..
Chuck Norris can divide by zero.

Offline CharlieReddog

  • Members
  • *
Re: Markers visibility only for a single side
« Reply #3 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.

Offline IKKINO

  • Members
  • *
Re: Markers visibility only for a single side
« Reply #4 on: 02 Mar 2008, 16:26:31 »
thx a lot charlie and sorry administrator ...  :-[