HUD objective icon not appearing

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
Oceans14
Command Sergeant Major
Command Sergeant Major
Posts: 296
Joined: Mon Apr 27, 2015 7:09 pm
Projects :: Athenova Campaign
Games I'm Playing :: SWBF2
Location: Planet 4546b

HUD objective icon not appearing

Post 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.
User avatar
AnthonyBF2
Sith
Sith
Posts: 1255
Joined: Wed Aug 21, 2013 3:55 pm
Projects :: PS2+PSP Overhaul

Re: HUD objective icon not appearing

Post by AnthonyBF2 »

Try using hud_objective_icon_circle instead of hud_objective_icon
User avatar
Oceans14
Command Sergeant Major
Command Sergeant Major
Posts: 296
Joined: Mon Apr 27, 2015 7:09 pm
Projects :: Athenova Campaign
Games I'm Playing :: SWBF2
Location: Planet 4546b

Re: HUD objective icon not appearing

Post 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.
Post Reply