/*
	PScript for scene 23
		by Peter Pon 2011/01/01
*/

#include "..\PScriptLib\Def.h"

#include "..\PScriptLib\box.pst"
#include "..\PScriptLib\desk.pst"
#include "..\PScriptLib\chair.pst"
#include "..\PScriptLib\jug.pst"



Scene_OnLoad()
{
	int i;
	string name;

	for ( i=1; i<=99; i++ )
	{
		MakeString(name, "D_D01", i);
		SetSceneItem(name, "name", "machine");
		SetSceneItem(name, "attribute", "collision", 1);
	}

	for ( i=1; i<=99; i++ )
	{
		MakeString(name, "D_D02", i);
		SetSceneItem(name, "name", "machine");
		SetSceneItem(name, "attribute", "collision", 1);
	}

	for ( i=1; i<=99; i++ )
	{
		MakeString(name, "D_D03", i);
		SetSceneItem(name, "name", "machine");
		SetSceneItem(name, "attribute", "collision", 1);
	}

	for ( i=1; i<=99; i++ )
	{
		MakeString(name, "D_Y01", i);
		SetSceneItem(name, "name", "machine");
		SetSceneItem(name, "attribute", "collision", 1);
	}

	for ( i=1; i<=99; i++ )
	{
		MakeString(name, "D_P01", i);
		SetSceneItem(name, "name", "machine");
		SetSceneItem(name, "attribute", "collision", 1);
	}


	for ( i=1; i<=99; i++ )
	{
		MakeString(name, "D_F01", i);
		SetSceneItem(name, "name", "machine");
		SetSceneItem(name, "attribute", "collision", 1);
	}

	for ( i=1; i<=99; i++ )
	{
		MakeString(name, "D_F02", i);
		SetSceneItem(name, "name", "machine");
		SetSceneItem(name, "attribute", "collision", 1);
	}

	for ( i=1; i<=99; i++ )
	{
		MakeString(name, "D_F03", i);
		SetSceneItem(name, "name", "machine");
		SetSceneItem(name, "attribute", "collision", 0);
	}

	for ( i=1; i<=99; i++ )
	{
		MakeString(name, "D_F04", i);
		SetSceneItem(name, "name", "machine");
		SetSceneItem(name, "attribute", "collision", 0);
	}

	for ( i=1; i<=99; i++ )
	{
		MakeString(name, "D_F05", i);
		SetSceneItem(name, "name", "machine");
		SetSceneItem(name, "attribute", "collision", 0);
	}

	for ( i=1; i<=99; i++ )
	{
		MakeString(name, "D_F06", i);
		SetSceneItem(name, "name", "machine");
		SetSceneItem(name, "attribute", "collision", 0);
	}

	for ( i=1; i<=99; i++ )
	{
		MakeString(name, "D_F07", i);
		SetSceneItem(name, "name", "machine");
		SetSceneItem(name, "attribute", "collision", 0);
	}

	for ( i=1; i<=151; i++ )
	{
		MakeString(name, "D_I01", i);
		SetSceneItem(name, "name", "machine");
		SetSceneItem(name, "attribute", "collision", 1);
	}
}

D_Item07_OnPickUp()
{
	NetEvent(1);
		
	SetSceneItem("D_I10", "attribute", "active", 1);

}
D_Item08_OnPickUp()
{
	NetEvent(1);
		
	SetSceneItem("D_I10", "attribute", "active", 0);

}
D_Item09_OnPickUp()
{
	NetEvent(1);
		
        SetSceneItem("D_P0102", "pose", 1, 1);
}


	