Change HUD Icon via LUA

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
Anakin
Master of the Force
Master of the Force
Posts: 4817
Joined: Sat Sep 19, 2009 11:37 am
Projects :: RC Side Mod - Remastered - SWBF3 Legacy
Location: Mos Espa (germany)

Change HUD Icon via LUA

Post by Anakin »

Hi,

i tryed this line:
SetProperty("tur_weap_hoth_dishturret", "HUDTag", "hud_rc_laser") < I want to change the HUD Icon from the stock turrets on stock hoth.

in the ScriptPostLoad() function. But it does not change the HUD icon. Someone an idea why and how to fix it??
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Change HUD Icon via LUA

Post by AQT »

You can't use SetClassProperty or SetProperty with a weapon unless it has its own REQ file.
User avatar
Anakin
Master of the Force
Master of the Force
Posts: 4817
Joined: Sat Sep 19, 2009 11:37 am
Projects :: RC Side Mod - Remastered - SWBF3 Legacy
Location: Mos Espa (germany)

Re: Change HUD Icon via LUA

Post by Anakin »

Is there an other way to do this via lua?? If not i'll do it via hud file
Post Reply