Bohemia Interactive Forums  

Go Back   Bohemia Interactive Forums > BI MILITARY GAMES FORUMS > ARMA 2 EDITING > ArmA 2 & OA - MISSION EDITING & SCRIPTING

ArmA 2 & OA - MISSION EDITING & SCRIPTING For discussing the technical aspects of creating custom ArmA 2 & the standalone expansion Operation Arrowhead missions as well as scripting.

Reply
 
Thread Tools Display Modes
Old 03-12-2010, 12:48 PM   #1
shendoo
Private
 
Join Date: Mar 2010
Posts: 4
In-game markers

Does anyone know how I can create a marker that shows up in-game? For example, a 3D label that is positioned over a point of interest, or information about other entities in the map that are shown over their heads, etc.

Can this be accomplished with markers? I'm pretty clueless about exactly what a marker is. Are they only show on maps?

I've tried creating markers like this, but it only shows up on the map:

Code:
_markerstr = createMarkerLocal ["markername", getPos player];
_markerstr setMarkerShape "RECTANGLE";
_markerstr setMarkerSize [20,20];
_markerstr setMarkerColor "ColorGreen";
Thanks in advance.
shendoo is offline   Reply With Quote
Old 03-13-2010, 11:52 PM   #2
shendoo
Private
 
Join Date: Mar 2010
Posts: 4
This isn't exactly what I was looking for, but could be used for text:

http://forums.bistudio.com/showthrea...&highlight=tag



The link to this script, "Name tag Script" by Loyalguard is dead...
---------- Post added at 12:52 AM ---------- Previous post was at 12:47 AM ----------


Here's another request, but not much to go on:

http://forums.bistudio.com/showthrea...&highlight=tag

Last edited by shendoo; 03-14-2010 at 12:00 AM.
shendoo is offline   Reply With Quote
Old 03-17-2010, 05:41 AM   #3
shendoo
Private
 
Join Date: Mar 2010
Posts: 4
Another way

I decided to use a GUI object (display) and dynamically size and adjust it based on player position.

I have some text moving http://community.bistudio.com/wiki/User:Hendo:Tutorialsisplay

Here we go...
shendoo is offline   Reply With Quote
Old 03-19-2010, 02:28 AM   #4
shendoo
Private
 
Join Date: Mar 2010
Posts: 4
Doing it the hard way

I ended up using GUI objects and scripting to do what I need.

Here's a screen shot of my current app:






The player can drop these icons using a modified laser range finder.

I'm now moving on to adding friendly and neutral icons.

Last edited by shendoo; 03-19-2010 at 03:41 AM.
shendoo is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:44 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.