Jump to content

Recommended Posts

Is it possible to have a custom map on an OPFOR, and when retrieved it updates the BLUFOR map, or is this more like a piece of intel with a picture embedded on it?  My idea is as you are moving along in the game, you are checking OPFOR for intel and if you find a map it gives locations and information or another objective.  Thanks.

Share this post


Link to post
Share on other sites

What you can do is attach an action to the opfor, search body, and it got a chance of giving you a map marker. Or make a already placed marker visible. 

Share this post


Link to post
Share on other sites

What you can do is attach an action to the opfor, search body, and it got a chance of giving you a map marker. Or make a already placed marker visible. 

 

Has anyone made or got a script that does this ?

Share this post


Link to post
Share on other sites

Has anyone made or got a script that does this ?

Not terribly difficult to create if you want something relatively simple.

Add an action to the enemy unit you want to be searchable with something like

this addAction ["Search for Intel", "mapfound.sqf", [], 1, true, false, "", "((_target distance _this) <3)"];
and then in the script which you named mapfound.sqf you could write something to the effect of

hint "You found a map!";
"newobjective" setMarkerAlpha 1;
newtask = true;
You could place a marker on the map in the editor named newobjective and set the initial alpha to 0 so it's invisible to the player until the script runs, and you can use the newtask variable created by the script to trigger a new task to appear. That's about the simplest way I can think to do it using minimal scripting and then using the in editor stuff like triggers and task modules to complete the rest.

Of course you can get way more complex than this or use the script to do more of the stuff that you would otherwise do with the in editor functions like the modules and triggers. It's personal preference at that point.

  • Like 1

Share this post


Link to post
Share on other sites

This is a great start. Thanks for the response and knowledge!  Would this work with Alive?

Share this post


Link to post
Share on other sites

Or make a trigger that fires when you search the body. The trigger might place a marker on the map

  • Like 1

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

×