"already referenced name as import;you must define it before using it"
EdiT:das script wäre jetzt so:
function DoorO( int GI, int doorobject, int dir,int doorhotspot, int walkableArea, const string open,const string lookat, int x, int y){
if(UsedAction(A_CLOSE)){
MovePlayer(x, y);
FaceDirection (GetPlayerCharacter (), dir);
PlaySound(3);
ObjectOff(doorobject);
EnableHotspot(doorhotspot);
RemoveWalkableArea(walkableArea);
SetGlobalInt(GI, 0);
}
else if(UsedAction(A_OPEN)){
MovePlayer(x, y);
FaceDirection (GetPlayerCharacter (), dir);
Display(open);
}
else if(UsedAction(A_LOOK_AT)){
MovePlayer(x, y);
FaceDirection (GetPlayerCharacter (), dir);
Display(lookat);
}
else return 0;
}