ive started making a parachuting game but i want to make the airfoil to start when i press C.
ive tried scripting but it doesnt work help
ive tried scripting but it doesnt work help
The 3DRad community can be found at classdev.net.
bool PARACHUTE = false;
void Main()
{
Vector3 v;
iObjectLocation(OBJ_0,v);
v.y += 5;
iObjectLocationSet(OBJ_66,v);
if (iMouseButtonClick(0)){
PARACHUTE = !PARACHUTE;
}
if(IN_22==0)//if no collision is detected, then change normal damping settings
{
if(!PARACHUTE){
OUT_44 = 0.999;
iObjectHide(OBJ_66);
}else{
OUT_44 = 0.985;
iObjectShow(OBJ_66);
}
}
}
...but the surface area does not seem to be effected at all, no matter what value you make it. So even setting it to 0 at run time does not "turn it off" as one would expect...