868 0 Posted April 13, 2005 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
hardrock 1 Posted April 13, 2005 ? (player12==player) : showMap false Share this post Link to post Share on other sites
868 0 Posted April 13, 2005 ? (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
hardrock 1 Posted April 13, 2005 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
868 0 Posted April 13, 2005 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
hardrock 1 Posted April 13, 2005 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
868 0 Posted April 13, 2005 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
Blanco 0 Posted April 14, 2005 Hmmm...I just spot this on ofpec : http://www.ofpec.com/yabbse....d=23005 Share this post Link to post Share on other sites
KeyCat 131 Posted April 14, 2005 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
868 0 Posted April 14, 2005 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
868 0 Posted April 14, 2005 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
hardrock 1 Posted April 14, 2005 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 0 Posted April 14, 2005 BlancoMay 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
868 0 Posted April 14, 2005 @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