| 04-21-2009, 04:18 PM | #1 |
Hi. When some units (creeps) are pre placed on map in world editor you can specify if it is a camp or not. So on the minimap you will have green orange or red spots. But how can i do that when i create units by triggers ? Their acquisition range is bigger (even if it can be fixed in object editor) and all creep spots are green on minimap :( |
| 04-26-2009, 07:31 PM | #2 |
Add a syntax error to a Jass custom script, then in Jasshelper window scroll way down until you see the unit creation functions. That's how they do it. |
| 04-26-2009, 09:10 PM | #3 |
i did what you said but found nothing usefull, it's just unit creation and mana set, nothing effective with camps :( Code:
function CreateNeutralHostile takes nothing returns nothing
local player p = Player(PLAYER_NEUTRAL_AGGRESSIVE)
local unit u
local integer unitID
local trigger t
local real life
set gg_unit_ngnw_0008 = CreateUnit( p, 'ngnw', -4610.9, 182.3, 1.100 )
call SetUnitState( gg_unit_ngnw_0008, UNIT_STATE_MANA, 0 )
endfunction |
| 04-26-2009, 09:23 PM | #4 |
You did your test wrong, choice 200 and you will see the function SetUnitAquireRange in the script. For the spots there is nothing about the acquire range, but depends only if it is an unit is owned by the player agressive and the level of the unit. Also the minimap is done at the map init, you can't edit it during the game. |
| 04-26-2009, 09:59 PM | #5 |
In my experience, creep camp minimap icons are updated in real time. |
| 04-26-2009, 10:03 PM | #6 | |
Quote:
you mean the yellow icon ? i don't know Because popp has said green, orange and red (the spots), and i'm sure they will appear/disappear only if the units are created on the map init and if the owner is the agressive player |
| 04-26-2009, 11:55 PM | #7 |
Run a test to create a number of level 9 creeps for Neutral Hostile (not during map initialization) within visual range and then retreat from them to allow them to be shrouded. A red creep camp icon should appear on the minimap. |
| 04-27-2009, 01:40 AM | #8 | |
Quote:
I also used this: Code:
call SetUnitAcquireRange( gg_unit_ngns_0068, 200.0 ) |
| 04-27-2009, 02:00 AM | #9 | |
Quote:
I believe that older versions of Darwin's Island had green dots popping up because of the 'food' critters constantly spawning everywhere. Since what you want is to replicate this, you might try and hunt down one and open it to see what exactly the creator did. I believe they were unprotected. |
| 04-27-2009, 08:37 AM | #10 |
no i don't want to have lot of green spots, i would like to have red orange and green spots like a melee map. It works at map init but if i add creeps later no matter the level it just add a green spot :( |
