Jump to content
code34

OO MARKER - oriented object marker

Recommended Posts

Object Oriented Marker

V 0.4 by Code34


Github: https://github.com/code34/oo_marker.Altis

Reference: http://forums.bistudio.com/showthread.php?167980-Object-Oriented-SQF-Scripting-and-Compiling


Description

OO Marker is a class (object oriented) marker that enhances original BIS marker functions and replaces them. This object uses Object Oriented SQF scripting of Naught and doesn't require to use addon.

Features:

  • BIS Marker features
  • Attach to an object
  • Blinking
  • Fade in & Fade off

Licence:

Under Gpl, you can share, modify, distribute this script but don't remove the licence and the name of the original author

Readme:

/*
Author: code34 nicolas_boiteux@yahoo.fr
Copyright (C) 2013 Nicolas BOITEUX

CLASS OO_MARKER

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>. 
*/

Create a main bus message between clients & server

Usage:
	put the "oo_marker.sqf" and the "oop.h" files in your mission directory
	put this code into your mission init.sqf
	call compilefinal preprocessFileLineNumbers "oo_marker.sqf";

See example mission in directory: init.sqf

Licence: 
You can share, modify, distribute this script but don't remove the licence and the name of the original author

logs:
	0.2 - OO Marker - fix locality & case sensitive, add accessor methods
	0.1 - OO Marker - first release
 

Examples

Create a tracking marker

call compilefinal preprocessFileLineNumbers "oo_marker.sqf";

_mark = ["new", position player] call OO_MARKER;
["attachTo", player] spawn _mark;
["setText", name player] spawn _mark;
 

Create a blinking marker

call compilefinal preprocessFileLineNumbers "oo_marker.sqf";

_mark = ["new", position goal] call OO_MARKER;
["setText", "You have to go here!"] spawn _mark;
["blink", 0.5] spawn _mark;
 

Share this post


Link to post
Share on other sites

Sounds very cool! So I imagine this could be used to place a tracking device on a vehicle, for instance?

Share this post


Link to post
Share on other sites

i just add:

- dir function,

- locality is set by default as local

Release only on github, avalaible in next release

Edited by code34

Share this post


Link to post
Share on other sites

hi :)

i just release the 0.2 version

logs:

- fix locality problems

- add accessors

- complete documentation

a new version more efficient will be release soon

Edited by code34

Share this post


Link to post
Share on other sites

hello guys,

just release the 0.3 version

logs:

- fix the efficient problems

- delete internals useless variables

- add getMarker accessor to retrieve marker

- add setLocal accessor, that rebuild marker as private or public depending of boolean

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

×