Jump to content
Sign in to follow this  
868

Hiding map

Recommended Posts

Hello all,

This is concerning a multiplayer map where all slots are 'playable'.

I am trying to find a way to hide the map in the briefing page for certain units (playable) and have another units be able to see/read the map (playable).

Could any one help me with this?

I've tried looking it up but had no success in finding the answer.

Thanks in advance

Yours,

868

p.s. if there is a same question asked in this forum then I applogise in advance.

Share this post


Link to post
Share on other sites

? (player12==player) : showMap false

I assume the 'player12' is the unit that I do not want the Map to show.

Now do i have to place this in the init of that soldier or could I just do this in the init.sqs?

e.g.

;Hide map from player12

? (player12==player) : showMap false

exit

Share this post


Link to post
Share on other sites

Exactly, player12 would be the unit that you want not to have the map available.

The line I posted is meant for the init.sqs

Share this post


Link to post
Share on other sites

Much appreciated hardrock

Thank you for your prompt replies.

Yours,

868

EDIT:

Actually that doesn't seem to work.

this is precisely what i had in my init.sqs

;================

;hidemap from s1 to s7

;================

? (s1==player) : showMap false

? (s2==player) : showMap false

? (s3==player) : showMap false

? (s4==player) : showMap false

? (s5==player) : showMap false

? (s6==player) : showMap false

? (s7==player) : showMap false

exit

Share this post


Link to post
Share on other sites

hmm that's strange. Try replace every (sX==player) with (local sX)

The playable units are named s1 to s7?

Share this post


Link to post
Share on other sites

Yes, 7 stranded men/players all named from s1 to s7.

Also what do you mean by the local sX?

Share this post


Link to post
Share on other sites

Thanks for the pointer Blanco! Been looking for something like this...

/Christer (a.k.a KeyCat)

Share this post


Link to post
Share on other sites

This is great but unfortunately I need to impliment this without using an addon.

Anyone?

Share this post


Link to post
Share on other sites

Blanco

May I ask for your permission to de-pbo this and use its contents only?

Share this post


Link to post
Share on other sites
hmm that's strange. Try replace every (sX==player) with (local sX)

I meant take the script snippet from above, replace ? (s1==player) : showMap false with ? (local s1) : showMap false, same for s2, s3 and so on.

Share this post


Link to post
Share on other sites
Blanco

May I ask for your permission to de-pbo this and use its contents only?

it's not mine.

It's from Student Pilot & Strango

Share this post


Link to post
Share on other sites

@hardrock

Ok, ill check that out.

@Blanco

I will ask for their permission in OFPEC

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  

×