OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: olseric on 12 Aug 2004, 02:33:29

Title: showMap
Post by: olseric on 12 Aug 2004, 02:33:29
Anyone else ever ran into an issue with the showMap command?

I can get it to work from the description.ext file, but the problem is, I want it to show for some, but not all.  From the desc file, it hides for everyone.

I attempted to put the command directly into the init field of the units I wanted to have the map and it kept telling me it was an invalid command.

Thoughts?  Ideas?
Title: Re:showMap
Post by: Dubieman on 12 Aug 2004, 03:03:40
Hmm,

I know the .ext one:

showmap 1   map shown
showmap 0  map not shown

then I saw something in the com ref about:

showmap true
showmap false

is that what you're looking for?

I've only dealt with .ext ones... :P
Title: Re:showMap
Post by: GrimMonkey on 12 Aug 2004, 05:59:39
ShowMap = 1;                Map is shown
ShowMap = 0;                Map is not shown

Only works in 'Description.ext' as far as I know. Chances are that it will be hidden for everyone.


Beware the GrimMonkey
Title: Re:showMap
Post by: macguba on 12 Aug 2004, 10:06:55
GRK's true/false thing for during the missions (it is 1/0 in description.ext) rings a bell - try it.
Title: Re:showMap
Post by: Dubieman on 12 Aug 2004, 16:21:45
Then there is a "shown map" command. Not really sure what  to use that for.... :P
Title: Re:showMap
Post by: h- on 12 Aug 2004, 16:52:47
shownMap returns true/false according to that showMap definition in the description.ext...

if showMap = 1 then shownMap returns true...

This must be one of the most unusefull commands BIS have included in OFP... :(
imo...
Title: Re:showMap
Post by: olseric on 13 Aug 2004, 05:16:47
Thanks guys for your help.  I think you pretty much confirmed my suspicions.

Doensn't much help in an SAR map to have it hidden from the SAR Crew, and visible to the pilot, but I guess we'll just make the pilot AI anyway. ;)