So my question is: i can hide my sniper when im switching like: dbHideObject(mainWeapon) BUT i dont know how to UNHIDE the object so please anybody know searched forum but no result or something else ;p and i dont know of i got the best switching system:
Switching keys:
//got seven lines of this ;(
if(dbKeyState(2)&&eenPressed==false)
{
eenPressed=true;
tweePressed=false;
driePressed=false;
vierPressed=false;
vijfPressed=false;
zesPressed=false;
zevenPressed=false;
}
Loading:
{
dbLoadObject("weapons//PSG//PSG.X", thirdWeapon);
dbScaleObject(thirdWeapon,2000, 2000, 2000); //works in percentages e.g. 10 makes the gun 10 times smaller(10% of full size)
dbPositionObject(thirdWeapon,0, 0, 0);
thirdWeapon.visible=false;
}
Hide system:
if(tweePressed==true)
{
thirdWeapon.visible=false;
}
else
{
dbHideObject(thirdWeapon);
}
Hi