PDA

View Full Version : Vieiwing markers and lines in game.



Dizzle
Jun 25 2010, 17:56
It is possible to view markers when you are not in map mode? Also, is is possible to draw lines and arrows that are visible in-game (not in map view mode)? From reading the forums, it seems like drawLine doesn't even work (I cannot get it to work either). Thanks.

CarlGustaffa
Jun 25 2010, 19:45
DrawLine and similar draw commands do work, they're just not trivial to get working. You might wanna read up on this (http://community.bistudio.com/wiki/Talk:drawEllipse). Yes, it's unfortunately quite complex.

Dizzle
Jun 25 2010, 20:04
DrawLine and similar draw commands do work, they're just not trivial to get working. You might wanna read up on this (http://community.bistudio.com/wiki/Talk:drawEllipse). Yes, it's unfortunately quite complex.

I have a couple of questions regarding the link you sent. Is "map" a global variable that is automatically set? Also, is the assumption correct that it will only draw the ellipse on the map? I'd like to be able to draw shapes that are visible when the user is in first-person view. Thanks for the direction.

CarlGustaffa
Jun 25 2010, 21:42
Ehm, no. Map refers to a control in a dialog or display, of type map (instead of button, textbox and whatever). I have used draw on dialog based maps, but I haven't tried yet on display type maps, but I have used maps on displays.

FTHud/STHud uses a resource driven display map, you could try to depbo that, get the "addresses" to the map, and poke into that. Btw, I have no idea if FPS is affected if you try to make that "transparent" (using map anim, just a trick) map go full screen.