Home   Help Search Login Register  

Advertisement

Author Topic: ShowGPS false does not work  (Read 2022 times)

0 Members and 1 Guest are viewing this topic.

Offline SaintPier

  • Members
  • *
ShowGPS false does not work
« 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

Offline Worldeater

  • Former Staff
  • ****
  • Suum cuique
Re: ShowGPS false does not work
« Reply #1 on: 10 Jul 2012, 00:14:39 »
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:
Code: [Select]
// 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;
};
try { return true; } finally { return false; }

Offline SaintPier

  • Members
  • *
Re: ShowGPS false does not work
« Reply #2 on: 15 Jul 2012, 14:02:54 »
Thanks Worldeater.
Will try that.

Offline ModestNovice

  • Members
  • *
Re: ShowGPS false does not work
« Reply #3 on: 06 Aug 2012, 21:55:28 »
Isn't showGps part of the description.ext?
"The road became empty and the people disappeared. The clouds ran away; opened up the sky, and one by one I watched every constellation die."
- Sean "Slug" Daley

Offline Gruntage

  • Missions Depot Staff
  • *****
  • How do I get outta this chickensh*t outfit?
Re: ShowGPS false does not work
« Reply #4 on: 06 Aug 2012, 22:13:28 »
It is. You can disable it from the description.ext or you can use the solution that WorldEater mentioned...

Code: [Select]
showGPS = 1;
...makes it appear

Code: [Select]
showGPS = 0;
...makes it disappear upon the start of the mission
Some of the most memorable missions made involve the player doing very little...

"But one thing I can tell you from not just OFP but life in general:  criticism is directly proportional to quality. The more criticism a mission receives, the better the outcome" - macguba

Offline ModestNovice

  • Members
  • *
Re: ShowGPS false does not work
« Reply #5 on: 06 Aug 2012, 22:16:57 »
Ah I was not aware that you could use it in scripts. Interesting...
"The road became empty and the people disappeared. The clouds ran away; opened up the sky, and one by one I watched every constellation die."
- Sean "Slug" Daley