Exemple #1
0
int main(void)
{
	Door d;

	d.open();
	d.open();
	d.close();
	d.close();
	d.open();

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