Thread: [WIP] LDR's WIPs
View Single Post
Old 10-29-2010, 06:10 PM   #31
LDR
Your Death Angel
 
LDR's Avatar
 
Join Date: Apr 2010
Location: Malachor V
Posts: 1,143
Current Game: Halo: Master Chief Collection
Helpful! Roleplayer Imperialist Meatbags Guild Member The Walking Carpets Guild Member 
Code:
void main()
{
  object oEntering = GetEnteringObject();
  object oPC=GetFirstPC();
  if (GetIsPC(oEntering))
      {
      //check if the object is already there to avoid multiple objects
      if  (!GetIsObjectValid(GetObjectByTag("kor_czex1")))
            {
          //Note that the script uses OBJECT_TYPE_CREATURE instead of OBJECT_TYPE_PLACEABLE - that's the only difference with the container:
          CreateObject(OBJECT_TYPE_CREATURE, "kor_czex1", Location(Vector(22.99,23.79,59.10), 00.28));
          CreateObject(OBJECT_TYPE_CREATURE, "kor_czex2", Location(Vector(40.78,00.68,59.22), 00.23));
          CreateObject(OBJECT_TYPE_CREATURE, "kor_czex3", Location(Vector(32.08,-40.12,59.16), 00.12));
          CreateObject(OBJECT_TYPE_CREATURE, "kor_cmer", Location(Vector(18.13,11.03,58.94), 00.97));
          CreateObject(OBJECT_TYPE_CREATURE, "kor_coff1", Location(Vector(10.20,-20.08,63.71), -00.61));
          CreateObject(OBJECT_TYPE_CREATURE, "kor_coff2", Location(Vector(10.24,08.61,63.71), -00.70));
          CreateObject(OBJECT_TYPE_CREATURE, "kor_coff3", Location(Vector(10.96,10.71,63.71), 00.99));
          CreateObject(OBJECT_TYPE_CREATURE, "kor_coff4", Location(Vector(10.96,10.71,63.71), 00.99));

     ExecuteScript("k33b_openacademy", OBJECT_SELF); 	
     }
I made the script but the compiler keeps aborting it. I have no idea what the error is.



Forgive, but never forget. No amount of DLC can take back lying to your fan base. Trust is earned, not downloaded.



My Mods
Current Mod Thread
LDR is offline   you may: quote & reply,