Editors Depot

[OFP] User Defined Marker Detection by snYpir

Version 1
Added 01 Sep 2007
Downloads 550
Demo included Yes
Filesize 7.21KB
User rating 4/5

Detects when player places a user-defined marker (ie. a double click on the map screen)

Essentially this script defines a range of global variables containing data about each new marker that the user places. Why this script is useful? Two reasons: 1. You don't have to worry about re-writing a loop to detect a user-placed marker in every script that uses user-defined markers. 2. Because usermarker.sqs runs in the background of your mission continuously, you will always have information regarding the latest user defined marker at hand. You can think of the global variables (userMarkerPos and such) as extra commands for you to use in your missions.


Click to see 19 other resources by this author.


Search OFPEC Editors Depot

COMREF

The OFPEC Command Reference contains details of all scripting commands available to the editor.

Beginner's Tutorial

All you need to know about how to start editing.

Multiplayer Tutorial

This tutorial explains the mysteries of multiplayer editing.

OFPEC Tutorials

OFPEC hosts several quality tutorials written specifically for the site by staff and members...

OFPEC Tags

Register a tag, browse for addon keys...