Page 1 of 1

HUD objective icon not appearing

Posted: Mon Oct 26, 2015 8:48 pm
by Oceans14
The map icon is appearing, but not the hud yellow arrow icon. Here's the section of my script:

Code: Select all

Objective1.OnStart = function(self)
        ScriptCB_EnableCommandPostVO(0)
        --Objective1.CAM_CP4Goal1 = AddAIGoal(ATT, "Defend", 100, "CAM_CP4")
        --Objective1.CAM_CP4Goal2 = AddAIGoal(DEF, "Defend", 20, "CAM_CP4")
        MapAddEntityMarker("crate_standin", "hud_objective_icon", 3.0, 1, "YELLOW", true)
    end
I pulled the values for MapAddEntityMarker straight from the stock geo script. The objective is a goto, so I attached the marker to a crate ("crate_standin"). I've commented out the other OnStart stuff just so I can focus on getting the arrow to show up.

Re: HUD objective icon not appearing

Posted: Mon Oct 26, 2015 9:17 pm
by AnthonyBF2
Try using hud_objective_icon_circle instead of hud_objective_icon

Re: HUD objective icon not appearing

Posted: Mon Oct 26, 2015 11:29 pm
by Oceans14
I did. No luck. When I poked around in the interface folder I found both hud_objective_icon and hud_objective_icon_circle. There's also """_offscreen too, which I figure is the sideways arrow that shows there the objective is when you aren't looking towards it.

Is it possible the icon could be under the terrain? The object it should be pointing to is up on a plateau (~30).

Edit: Is the goto arrow supposed to point to an object or a region? I thought it pointed to an object... if so, then why is a region also called in the script? Additionally, what layer should both be in? I currently have them in the base layer. I read a post from a while back were one person said that stuff has to be in the campaign layer, and then somebody else said it didn't matter. Could somebody clarify for me? Thanks.