OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: bedges on 31 Jul 2005, 20:13:58

Title: text from markers...
Post by: bedges on 31 Jul 2005, 20:13:58
is there any way of ascertaining what text goes along with any given marker?

Title: Re:text from markers...
Post by: bedges on 02 Aug 2005, 20:56:28
bump?
Title: Re:text from markers...
Post by: h- on 03 Aug 2005, 13:52:03
Nope, no can do...
Title: Re:text from markers...
Post by: Terox on 03 Aug 2005, 16:31:25
what do you mean?
 the text entered into the marker by the mission maker

or something else, please give more info on what you are trying to achieve



Title: Re:text from markers...
Post by: bedges on 04 Aug 2005, 17:32:46
m'kay. you place a marker in the editor, and there's a text field. you can type in text, and it appears next to the marker.

in game, you can call up the map, double click on it and type in text defining your own real-time marker.

my question: is there a way of getting at the text using script? editor-placed markers can be changed in terms of size and shape and position, in-game markers can be got at too.

but not text it seems. ho hum.
Title: Re:text from markers...
Post by: mad_addons on 04 Aug 2005, 20:08:18
I've seen this type before.. I don't know how to do this but I have an alternative method...

Delete the current marker.
Then make another one of the same type, but with a different text.

I hope this is what you mean.
Sorry I can't be much of help.
Title: Re:text from markers...
Post by: Chris Death on 05 Aug 2005, 06:21:16
Bedges, i did want to use this for my MOTAG (MOre Than A Group)
too.

Unfortunately there's no way to interact with the marker's text.

In my case it was that i did want to change the marker text
instead of your case, where you want to access the info you
get from the marker text (at least that's what i think you want do).

I even tried to use strg_ variables, but there was no way to interact with marker text.

 :-\

~S~ CD
Title: Re:text from markers...
Post by: Killswitch on 05 Aug 2005, 10:39:58
The rule:

If something a) would be useful or b) actually works, it's not in OFP.

The two commands getMarkerText and setMarkerText satisfies both, and are therefore by definition not available in OFP, despite having been requested since OFP was released. Useful and working commands are reserved for "that other product", VBS-1.  ::)
Title: Re:text from markers...
Post by: h- on 05 Aug 2005, 11:49:57
Quote
If something a) would be useful or b) actually works, it's not in OFP.
;D ;D ;D
Quite...
Title: Re:text from markers...
Post by: bedges on 05 Aug 2005, 17:37:38
ach fuducker. it's easy to see why there are such high hopes for ofpII...  ::)

in the end it's just cosmetic - i have a dialog which lists the markers put on the map by the player, and at the moment they're called 'marker1', 'marker2', etc. the text typed in by the player would have been a bit more pleasingly interactive. but them's the breaks.

thanks for the input gentlemen.