- Joined
- Mar 17, 2008
- Messages
- 179
- Reaction score
- 116
- Points
- 43
- Location
- Southwest Pennsylginia
- Website
- sites.google.com
I'm starting a VC in a new project but I can't get the Hud to render. MFDs are fine but the HUD is blank.
I made a DLL version using the same meshes and everything was fine.
This is on 2024-rc1.
Code:
function clbk_loadVC(id)
local mfds_left = {nmesh=1, ngroup=4}
local mfds_right = {nmesh=1, ngroup=5}
local hud_pilot = {nmesh=1,ngroup=6,hudcnt={x=-0.894,y=2.277,z=81.111},size=0.65}
oapi.VC_registermfd (MFDID.LEFT, mfds_left)
oapi.VC_registermfd (MFDID.RIGHT, mfds_right)
oapi.VC_registerHUD (hud_pilot)
vi:set_cameraoffset({x=-0.899,y=2.1,z=80.441})
vi:set_cameradefaultdirection({x=0,y=0,z=1})
return true
end
This is on 2024-rc1.