Jump to content
Sign in to follow this  

Recommended Posts

I am setting all my marker using a game logic to call my .sqf which then runs the following to hide the markers

"hold_area" setMarkerAlpha 0;

Then when a certain task is ready from a trigger I am setting issuing "hold_area" setMarkerAlpha 1; so we can see the marker as I need them to show on the map,

That all works but the problem is JIP will never see the markers how can i get around this any suggestions.

Cheers

Share this post


Link to post
Share on other sites
Guest

Really? I use this technique as well most of the time and thought it was ok with JIP's:confused:

If what you say is true then I would also like to know a way to get around this problem.

Share this post


Link to post
Share on other sites

No will not work for JIP as they was not in game when the trigger fired and showed the marker (:

Found this that looks like it will work but not had a chance to test it!

initJIPCompatible.sqf:

"obj01mrkColor" addPublicVariableEventHandler {
	"obj01m" setMarkerColor ((_this select 1) select 0);
};

Trigger

obj01mrkColor = ["ColorWhite"]; publicVariable "obj01mrkColor";

looks like initJIPCompatible.sqf is called automatically

let us know how you get on as well! :)

Share this post


Link to post
Share on other sites

Or just do something like this in the init.sqf:

if (!isnil "mrkPV_hold_area") then {"hold_area" setmarkeralpha 1};

Trigger:

onAct: mrkPV_hold_area = true; publicvariable "mrkPV_hold_area";

Share this post


Link to post
Share on other sites

Cool just tested and that works , thanks as ever Shk

---------- Post added at 12:58 PM ---------- Previous post was at 12:52 PM ----------

If i wanted to have a few would it be ?

if (!isnil "mrkPV_hold_area","mrkPV_blar_blar") then {"hold_area","Road_block" setmarkeralpha 1};

Share this post


Link to post
Share on other sites

Hi Shk,

I thought this was working but for some reason it does not ?

I have the following in my Ini.sqf

if (!isnil "mrkPV_roadblock") then {"roadblock" setmarkeralpha 1};

I have a game logic that sets my markers to setmarkeralpha 0

_anyName = [] execVM "markerAlpha.sqf"

trigger

act on

hint"showmarker";mrkPV_roadblock = true ;publicvariable "mrkPV_roadblock"; 

the marker is named roadblock

linked it to radio - i see the hint come up but no marker ?

Any idea why ?

Thanks

Share this post


Link to post
Share on other sites

linked it to radio - i see the hint come up but no marker ?

Any idea why ?

It's not supposed to show up for non-JIPs. For players already connected you need to run the setalpha command normally of course.

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  

×