Page 1 of 1

Vehicle HUD Elements

Posted: 2015-08-02 17:27
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

Re: Vehicle HUD Elements

Posted: 2015-08-02 17:59
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>