Hi,
I'm hoping someone can help me with this..
Basically, I want to be able to show and hide an object in front of the camera. It's actually showing the object fine with the keyhit but I'm unable to hide it again. The object is parented to the camera and so moves around nicely in full view. How can I hide, delete or shift the object from view. This code resides in the Main Loop of my program. Thanks.
if KeyHit(KEY_F5)==1 then
if showthing==0 then
local object=0.6
local vwep = LoadMesh("abstract::object1.gmf")
LoadMesh("abstract::object1",vwep)
vwep:SetParent(fw.main.camera,0)
vwep:SetPosition(Vec3(-0.0*object,-0.01*object,0.45*object),0)
showthing=1
else
showthing=0
end
end