Search the Community
Showing results for tags 'drawicon'.
Found 2 results
-
gui Map icons rendering. Icons disappear
Safkon posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hello! I have problems with drawing icons (default solder icons for all units) in onDraw event handler. Some of the icons are rendered, some are not. Some rendered icons can disappear after moving or zooming map. My dialog: Map onDrawMap script: Seems like I'm make some stupid mistake, but I can't figure out what exactly. 🤔 In-game dialog after creation: After map moving upper: Top-left squad with broken rendering P.S. Scripts and dialog code is shortened for ease of understanding -
Hi, I'm having problems figuring out what I'm doing wrong with the command drawIcon. It works in singleplayer and the icon shows up on the map, but in multiplayer it doesn't. It's supposed to be displayed on both the GPS-minimap and the regular map screen. Here's the code I've got so far. It's executed on the init of the unit (fredrik) in question. ((findDisplay 12) displayCtrl 51) ctrlAddEventHandler ["Draw", { (_this select 0) drawIcon [ "iconManMedic", [0,0,1,1], (getPosWorld fredrik), 0.5 / ctrlMapScale (_this select 0), 0.5 / ctrlMapScale (_this select 0), getDir fredrik, (name fredrik) ]; }]; Any kind of clarification on how to get it to show up on the GPS and in multiplayer would be appreciated! Thanks!
- 4 replies
-
- drawicon
- multiplayer
-
(and 1 more)
Tagged with: