Jump to content
Sign in to follow this  
JacobJ

Marker only shown to one side? SOLVED

Recommended Posts

Hey all

How would I make a marker that is only shown to one side?

I know how to create it by script, but I have tried a if statement with the side in them to only be created for east only, but that didnt work.

I think it is simple, but I just can't see how its done...

/Jacob

Edited by JacobJ

Share this post


Link to post
Share on other sites

waitUntil {!isNull player};

if (side player == EAST) then

{

...

}

else

{

...

};

Share this post


Link to post
Share on other sites

Yes I tried that, but west can also see the marker. I think its because it is like a vehicle, when it gets created, it doesnt matter who creates it, its just there for both teams to observe.

---------- Post added at 19:53 ---------- Previous post was at 19:10 ----------

Edited by JacobJ

Share this post


Link to post
Share on other sites

Okay, I thought I found the solution, but it turns out, that all players can still see the marker, no matter if they are blufor or opfor....

Does anyone have some wisdoms words about markers and how to restrict the visibility of them only to one side in the game?

Share this post


Link to post
Share on other sites

you need to use createMarkerLocal and its commands:

waitUntil {!isNull player};
if ((side player) == west) then {
_markerstr = createMarkerLocal["markername",[_Xpos,_Ypos]];
_markerstr setMarkerShapeLocal "ICON";
_markerstr setMarkerTypeLocal "DOT";
};

Share this post


Link to post
Share on other sites

ARHGGG!! I was using the createmarkerlocal, but not using the other commands like setMarkerShapeLocal (I was using the global commands instead).

Thank you again, I will give this a shot!

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  

×