30.03.2010, 20:29
here is the code (not proper)
if(IsPlayerInRangeOfPoint(etc....))
{
MoveObject(etc...); coords of opened
}
else
{
MoveObject(etc...); coords of closed
}
if(IsPlayerInRangeOfPoint(etc....))
{
MoveObject(etc...); coords of opened
}
else
{
MoveObject(etc...); coords of closed
}