Vehicle HUD Elements

Making or wanting help making your own asset? Check in here
Post Reply
X-Alt
Posts: 1073
Joined: 2013-07-02 22:35

Vehicle HUD Elements

Post by X-Alt »

Currently, I'm attempting to convert a few vehicles (tanks) to PR, unfortunately, they lack a proper set of crosshairs for the gunner. I came across HUDelements(vehiclename).con, but I'm unaware on how to link these files to the vehicle in question, which has none currently.

Regards,
X-Alt
User avatar
Mats391
PR:BF2 Lead Developer
Posts: 7643
Joined: 2010-08-06 18:06

Re: Vehicle HUD Elements

Post by Mats391 »

HUDs are assigned through the GuiIndex of the active weapon. Check for ObjectTemplate.weaponHud.guiIndex in the vehicle code and hudBuilder.setNodeLogicShowVariable EQUAL/OR/AND/NOT <index>
Image

Mineral: TIL that Wire-guided missiles actually use wire
Post Reply

Return to “PR:BF2 Community Modding”