OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: SaintPier on 08 Jul 2012, 17:53:10
-
Hi people,
When I enter the briefing while in the game I always get that GPS thing.
I tried to disable that with 'ShowGPS false' but it still shows.
'ShowGPS=false' also doesn't work.
Does anyone know how to hide the GPS?
thx
SaintPier
-
I tried to disable that with 'ShowGPS false' but it still shows.
Yes, putting this in the init fields of units does not seem to work. It looks like showGPS has to be set after the mission starts.
There are many ways to run code after a mission starts.
You could create a trigger that fires reliably on every mission start (like a really big one that's being activated once by anybody) and put "showGPS false" in its "On Act." field.
Another way would be to add something like this to your init.sqf:
// create a small script that runs in the background
// where it waits until the mission starts
// and then disables the GPS for us
0 spawn {
waitUntil { time > 0 };
showGPS false;
};
-
Thanks Worldeater.
Will try that.
-
Isn't showGps part of the description.ext?
-
It is. You can disable it from the description.ext or you can use the solution that WorldEater mentioned...
showGPS = 1;
...makes it appear
showGPS = 0;
...makes it disappear upon the start of the mission
-
Ah I was not aware that you could use it in scripts. Interesting...