- Joined
- Jun 6, 2012
- Messages
- 317
- Reaction score
- 126
- Points
- 43
- Location
- Sydney, Australia, Earth, Sol
- Website
- www.orbithangar.com
hey guys, i am trying to code a Virtual Cockpit that has a button which performs an animation. this is what i have so far in "clbkVCMouseEvent"
but the button only opens it, and does not close it :shrug: i know it's something really simple i'm doing wrong, but i don't know what... any help would be REALLY appreciated.
Code:
bool Pegasus::clbkVCMouseEvent (int id, int event, VECTOR3 &p)
{
switch (id)
{
case BUTTON_BAY1_OPEN:
if (BAY_1Status < OPEN) BAY_1Status = OPENING;
return true;
case BUTTON_BAY1_CLOSE:
if (BAY_1Status = OPEN) BAY_1Status = CLOSED;
return true;
return true;
}
}
but the button only opens it, and does not close it :shrug: i know it's something really simple i'm doing wrong, but i don't know what... any help would be REALLY appreciated.