Why not? Disable collision and set the entity on the playerhead(I dont know the exact point where it is)
SetPosition(e,g_PlayerPosX,g_PlayerPosY+PlayerHeadHeight,g_PlayerPosZ)
That should do the trick. And then you must rotate your helmet. I wrote two script functions to carry a crate long ago maybe it is usefull:
function CarryObject(e)
AngPlr = math.floor(g_PlayerAngY)
while AngPlr > 340 do
AngPlr = AngPlr - 360
end
while AngPlr < 0.0 do
AngPlr = AngPlr + 360
end
x1 = g_PlayerPosX + 50*math.sin(math.rad(AngPlr))
y1 = g_PlayerPosY - 25
z1 = g_PlayerPosZ + 50*math.cos(math.rad(AngPlr))
GravityOff(e)
CollisionOff(e)
RotateToPlayer(e)
ResetPosition(e,x1,y1,z1)
SetPosition(e,x1,y1,z1)
end
function StopCarryObject(e)
CollisionOn(e)
GravityOn(e)
end
Of course you must adapt it to your needs.
The best option for this would a 2d hud+PostProcessing Shader. But I think we dont have PostProcessing shader yet.
Ebe Editor Free - Build your own EBE structures with easy and without editing any text files
Thread and Download