Home   Help Search Login Register  

Author Topic: Hiding texture-looking markers  (Read 571 times)

0 Members and 1 Guest are viewing this topic.

Offline goki

  • Members
  • *
Hiding texture-looking markers
« on: 31 Oct 2003, 14:48:00 »
Hi ya,

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

Offline Spinor

  • Members
  • *
  • I'm a llama!
    • The chain of command
Re:Hiding texture-looking markers
« Reply #1 on: 31 Oct 2003, 15:35:13 »
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]

Offline goki

  • Members
  • *
Re:Hiding texture-looking markers
« Reply #2 on: 03 Nov 2003, 14:13:49 »
Hi Spinor,  

thank you for replying...  

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




-Gokistanis

Komuna

  • Guest
Re:Hiding texture-looking markers
« Reply #3 on: 03 Nov 2003, 14:49:43 »
_OriginalType = getMarkerType "MyMarker"


then


"MyMarker" setMarkerType "Empty" - Hide the marker



"MyMarker" setMarkerType _OriginalType - retrieve the original marker

Offline goki

  • Members
  • *
Re:Hiding texture-looking markers
« Reply #4 on: 03 Nov 2003, 16:25:01 »
Hi,

Komuna, Komuna, where are you Komuna?

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

Offline Spinor

  • Members
  • *
  • I'm a llama!
    • The chain of command
Re:Hiding texture-looking markers
« Reply #5 on: 03 Nov 2003, 16:37:44 »
Quote
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.

Quote
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 ;)

Offline goki

  • Members
  • *
Re:Hiding texture-looking markers
« Reply #6 on: 03 Nov 2003, 16:48:08 »
Quote
so that was old stuff for me
 


eheh hehe :) really? :)  

you spoiled, proud young men ! you are the same always...

alas, I was just beginning to think that you made me something special,



anyway, I am really bored of this stuff so setpos command is fine to me,

thank you very much again.


-Gokistanis