Jump to content
Sign in to follow this  
Gaffa

Hide Markers?

Recommended Posts

Hi,

I seem to be having trouble hiding markers in the mission briefing screen and ingame.

I'm using the Urban Patrol Script, with enemies that I spawn into the mission later on. The first objective I have placed units in the mission editor but for the objectives thereafter they get spawned in via scripts + triggers.

The problem I'm having is that all the markers that are going to be used for the UPS and spawning units are showing in the mission briefing and ingame. The markers for the first objective disappear once UPS has kicked in, but the others remain on show.

In my init.sqf I'm using the following code that Kronzky has suggested but I'm having no luck...

"p6" setMarkerPos [-(getMarkerPos "p6" select 0),-(getMarkerPos "p6" select 1)];
"p5" setMarkerPos [-(getMarkerPos "p5" select 0),-(getMarkerPos "p5" select 1)];
"p4" setMarkerPos [-(getMarkerPos "p4" select 0),-(getMarkerPos "p4" select 1)];
"p3" setMarkerPos [-(getMarkerPos "p3" select 0),-(getMarkerPos "p3" select 1)];
"p2" setMarkerPos [-(getMarkerPos "p2" select 0),-(getMarkerPos "p2" select 1)];
"p1" setMarkerPos [-(getMarkerPos "p1" select 0),-(getMarkerPos "p1" select 1)];
"pp4" setMarkerPos [-(getMarkerPos "pp4" select 0),-(getMarkerPos "pp4" select 1)];
"pp3" setMarkerPos [-(getMarkerPos "pp3" select 0),-(getMarkerPos "pp3" select 1)];
"pp2" setMarkerPos [-(getMarkerPos "pp2" select 0),-(getMarkerPos "pp2" select 1)];
"pp1" setMarkerPos [-(getMarkerPos "pp1" select 0),-(getMarkerPos "pp1" select 1)];
"ppp4" setMarkerPos [-(getMarkerPos "ppp4" select 0),-(getMarkerPos "ppp4" select 1)];
"ppp3" setMarkerPos [-(getMarkerPos "ppp3" select 0),-(getMarkerPos "ppp3" select 1)];
"ppp2" setMarkerPos [-(getMarkerPos "ppp2" select 0),-(getMarkerPos "ppp2" select 1)];
"ppp1" setMarkerPos [-(getMarkerPos "ppp1" select 0),-(getMarkerPos "ppp1" select 1)];
"pppp3" setMarkerPos [-(getMarkerPos "pppp3" select 0),-(getMarkerPos "pppp3" select 1)];
"pppp2" setMarkerPos [-(getMarkerPos "pppp2" select 0),-(getMarkerPos "pppp2" select 1)];
"pppp1" setMarkerPos [-(getMarkerPos "pppp1" select 0),-(getMarkerPos "pppp1" select 1)];
"ppppp9" setMarkerPos [-(getMarkerPos "ppppp9" select 0),-(getMarkerPos "ppppp9" select 1)];
"ppppp8" setMarkerPos [-(getMarkerPos "ppppp8" select 0),-(getMarkerPos "ppppp8" select 1)];
"ppppp7" setMarkerPos [-(getMarkerPos "ppppp7" select 0),-(getMarkerPos "ppppp7" select 1)];
"ppppp6" setMarkerPos [-(getMarkerPos "ppppp6" select 0),-(getMarkerPos "ppppp6" select 1)];
"ppppp5" setMarkerPos [-(getMarkerPos "ppppp5" select 0),-(getMarkerPos "ppppp5" select 1)];
"ppppp4" setMarkerPos [-(getMarkerPos "ppppp4" select 0),-(getMarkerPos "ppppp4" select 1)];
"ppppp3" setMarkerPos [-(getMarkerPos "ppppp3" select 0),-(getMarkerPos "ppppp3" select 1)];
"ppppp2" setMarkerPos [-(getMarkerPos "ppppp2" select 0),-(getMarkerPos "ppppp2" select 1)];
"ppppp1" setMarkerPos [-(getMarkerPos "ppppp1" select 0),-(getMarkerPos "ppppp1" select 1)];

Now the markers

"p6" setMarkerPos [-(getMarkerPos "p6" select 0),-(getMarkerPos "p6" select 1)];
"p5" setMarkerPos [-(getMarkerPos "p5" select 0),-(getMarkerPos "p5" select 1)];
"p4" setMarkerPos [-(getMarkerPos "p4" select 0),-(getMarkerPos "p4" select 1)];
"p3" setMarkerPos [-(getMarkerPos "p3" select 0),-(getMarkerPos "p3" select 1)];
"p2" setMarkerPos [-(getMarkerPos "p2" select 0),-(getMarkerPos "p2" select 1)];
"p1" setMarkerPos [-(getMarkerPos "p1" select 0),-(getMarkerPos "p1" select 1)];

Are the first objective. They show at start up but disappear once UPS starts, however all the other markers wont hide :confused:

Any help appreciated, thanks

Share this post


Link to post
Share on other sites

Ah dammit, I always miss the smallest of things......

Thanks matey! :)

Share this post


Link to post
Share on other sites

Put that in an object like game logic's init instead of init.sqf and it will be ran sooner.

Share this post


Link to post
Share on other sites

setMarkerAlpha isn't doing anything for me when placed in the init file :( still shows in briefing and thru the whole mission. will try the game logic approach.

---------- Post added at 07:47 PM ---------- Previous post was at 07:31 PM ----------

That worked, nothin in the briefing either :)

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×