OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: alimag on 10 Nov 2003, 14:47:31

Title: isMap function?
Post by: alimag on 10 Nov 2003, 14:47:31
Hi everyone,

Is there a function that will return true/false if the map is currently displayed on the screen (something like isEngine function)?

The functions I have found in the comref are not what I need.

Thanks in advance

AliMag
Title: Re:isMap function?
Post by: Igor Drukov on 10 Nov 2003, 17:43:02
Hey !

I don't think you can do that, and that's really unfortunate (I wish we could too...)

Still, somebody might come up with a solution that doesn't use :

forcemap
show(n)map,

which are barely acceptable work-arounds.

*joins alimag in the waiting-room*

Ig.
Title: Re:isMap function?
Post by: alimag on 11 Nov 2003, 16:26:53
Thanks for the reply Igor,

I find it strange that the developpers have no way of knowing (internally) when the map is displayed. I'm sure that they could add an isMap function if they want.

Another solution would be to give the scripters a possibility to intercept the key pressed during a mission.  so we can manage when the 'M' key is pressed (or any other key for that matter)

Maybe a last patch BIS?

AliMag