OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: goki on 31 Oct 2003, 14:48:00
-
Hi ya, (http://www.prz.tu-berlin.de/~alsch/image_archive/icons/person/oldguy_sm.gif)
another kinky gokistanis query,
I hide some markers at once in init.sqs then during the game I activate them yet I realized that some certain types of markers are not able to be Empty in init.sqs. these are texture-looking markers created when selecting ellipse or rectangule option in insert marker window. names are solid, horizontal, vertical etc...
the query is that, how can one hide these types of markers?
-Gokistanis
-
You can either move them off-map where they can't be seen, like
"myMarker" setMarkerPos [-10000,-10000]
and then move them back to their original position, or you can give them zero size
"myMarker" setMarkerSize [0,0]
and subsequently resize them back, e.g.
"myMarker" setMarkerSize [100,50]
-
Hi Spinor, (http://www.prz.tu-berlin.de/~alsch/image_archive/icons/person/oldguy_sm.gif)
thank you for replying... (http://www.prz.tu-berlin.de/~alsch/image_archive/icons/smileys/smiley2.gif)
well, my problem is solved yet the command setMarkerSize didn't work for me! does it work for you?
then I tried setMarkerPos and it solved the matter.
hey I just wondered if this way is common between editors? I drive at, do you use this gimmick usually (hiding texture-looking markers by setpos or set size commands in your missions ) or did you just improvise it for my individual problem?
I will click solve just after your reply - don't be panic (http://www.prz.tu-berlin.de/~alsch/image_archive/icons/smileys/smiley2.gif)
(http://www.prz.tu-berlin.de/~alsch/image_archive/icons/comic/calvin_and_hobbes.gif)
-Gokistanis
-
_OriginalType = getMarkerType "MyMarker"
then
"MyMarker" setMarkerType "Empty" - Hide the marker
"MyMarker" setMarkerType _OriginalType - retrieve the original marker
-
Hi, (http://www.prz.tu-berlin.de/~alsch/image_archive/icons/person/oldguy_sm.gif)
Komuna, Komuna, where are you Komuna? (http://www.prz.tu-berlin.de/~alsch/image_archive/icons/smileys/smiley2.gif)
the point is not hiding a normal marker, I am already using the command setmarkertype empty, you proposed... here we mention texture-looking ones which get available when clicking ellipse option for e.g...
your command gave an error message also...
anyway, my problem is solved by using setpos command.
but thanks to everyone concerned...
-gokistanis
-
well, my problem is solved yet the command setMarkerSize didn't work for me! does it work for you?
Yup, I already used it, and I think also on texture-like markers, so it should work. Can't find
any error in the syntax, though.
hey I just wondered if this way is common between editors? I drive at, do you use this gimmick usually
(hiding texture-looking markers by setpos or set size commands in your missions ) or did you just
improvise it for my individual problem?
In that specific case, yes, I use this trick quite often to hide markers. I'm working very often
with markers, so that was old stuff for me ;D ;)
-
so that was old stuff for me
eheh hehe :) really? :) (http://www.prz.tu-berlin.de/~alsch/image_archive/icons/person/oldguy_sm.gif)
you spoiled, proud young men ! you are the same always... (http://www.prz.tu-berlin.de/~alsch/image_archive/icons/smileys/smiley2.gif)
alas, I was just beginning to think that you made me something special, (http://www.prz.tu-berlin.de/~alsch/image_archive/icons/smileys/smiley2.gif)
anyway, I am really bored of this stuff so setpos command is fine to me,
thank you very much again.
-Gokistanis