
/* 
	PScript by Peter Pon
	
	scene23
*/
#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;

  //qq
  for ( i=1; i<=999; i++ )
  {
   MakeString(name, "D_qq", i);
   SetSceneItem(name, "name", "machine");
   SetSceneItem(name, "attribute", "collision", 1);
  }
  //aa
  for ( i=1; i<=999; i++ )
  {
   MakeString(name, "D_aa", i);
   SetSceneItem(name, "name", "machine");
   SetSceneItem(name, "attribute", "collision", 0);
  }

}
Scene_OnInit()
{
 string name;
 int i;
 



 


 


	InitBoxes(g_iNumBoxes);
	InitBBoxes(g_iNumBBoxes);
	InitChairs(g_iNumChairs);
	InitDeskes(g_iNumDeskes);
	InitJugs(g_iNumJugs);

	SetSceneItem("X01", "name", "machine");
	SetSceneItem("X01", "attribute", "collision", 1);
        SetSceneItem("X01", "attribute", "active", 1);
	
	SetSceneItem("X02", "name", "machine");
	SetSceneItem("X02", "attribute", "collision", 1);
        SetSceneItem("X02", "attribute", "active", 1);

	SetSceneItem("X03", "name", "machine");
	SetSceneItem("X03", "attribute", "collision", 1);
        SetSceneItem("X03", "attribute", "active", 1);


	SetSceneItem("S02", "name", "machine");
	SetSceneItem("S02", "pose", 0, 0);
	SetSceneItem("S02", "attribute", "collision", 1);
	SetSceneItem("S02", "attribute", "interactive", 1);
}