Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
this is a n00b question!
Padster Offline
Junior Member

Posts: 11
Threads: 1
Joined: Dec 2010
Reputation: 0
#3
RE: this is a n00b question!

here is what i have coded for my first OnStart and the game is giveing me a FATAL ERROR and saying that the ERR is :Expectide '(' haha i have no idea what that means!
void OnStart()
{
{
AddUseItemCallback("", "DoorKey_1", "Door_3", "UseKeyOnDoor", true);
}
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked("Door_3", false, true);
PlaySoundAtEntity("", "unlock_door", "Player", 0, false);
RemoveItem("DoorKey_1");
}
{
AddEntityCollideCallback ("Player", "doorslam_1","Collidedoorslam", true, -1);
}
void Collidedoorslam(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("Room_2", true, true);
PlaySoundAtEntity("", "amb_hunt01", "Player", 0, false);
}


{
AddEntityCollideCallback("Player", "Unlock_1","Room2Unlock", true, 1);
}
void Room2Unlock(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorLocked("Room_2", true, true);
PlaySoundAtEntity("", "unlock_door", "Player", 0, false);
}

}
////////////////////////////
// Run when entering map
void OnEnter()
// this is the lamp for debug
{
if(ScriptDebugOn())
{
GiveItemFromFile("lantern", "lantern.ent");

for(int i=0;i<10;i++) GiveItemFromFile("tinderbox_"+i, "tinderbox.ent");
}
}
12-02-2010, 03:55 AM
Find


Messages In This Thread
this is a n00b question! - by Padster - 12-02-2010, 03:43 AM
RE: this is a n00b question! - by Chilton - 12-02-2010, 03:46 AM
RE: this is a n00b question! - by Padster - 12-02-2010, 03:55 AM
RE: this is a n00b question! - by Chilton - 12-02-2010, 04:00 AM
RE: this is a n00b question! - by Padster - 12-02-2010, 04:07 AM
RE: this is a n00b question! - by Chilton - 12-02-2010, 04:15 AM
RE: this is a n00b question! - by Padster - 12-02-2010, 04:23 AM
RE: this is a n00b question! - by Chilton - 12-02-2010, 04:24 AM



Users browsing this thread: 1 Guest(s)