int main(void) { Door d; d.open(); d.open(); d.close(); d.close(); d.open(); return 0; }
void Functions::actionOpenDoor(Aurora::NWScript::FunctionContext &ctx) { Door *door = NWN::ObjectContainer::toDoor(getParamObject(ctx, 0)); if (door) door->open(NWN::ObjectContainer::toObject(ctx.getCaller())); }