09-01-2011, 08:17 PM
////////////////////////////
// Run first time starting map
void OnStart()
{
SetPlayerLampOil(0);
}
////////////////////////////
// Run when entering map
void OnEnter()
{
PlayMusic("09_amb_safe", true, 0.9, 5, 0, true);
AddUseItemCallback("", "Key_1", "Door_1", "UsedKeyOnDoor", true);
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked(Door_1, false, true);
PlaySoundAtEntity("", "unlock_door.snt", "Door_1", 0.0f, false);
RemoveItem(Key_1);
}
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}
ERROR: expected ( at 16,8!
Could someone please help me fix this?
// Run first time starting map
void OnStart()
{
SetPlayerLampOil(0);
}
////////////////////////////
// Run when entering map
void OnEnter()
{
PlayMusic("09_amb_safe", true, 0.9, 5, 0, true);
AddUseItemCallback("", "Key_1", "Door_1", "UsedKeyOnDoor", true);
void UsedKeyOnDoor(string &in asItem, string &in asEntity)
{
SetSwingDoorLocked(Door_1, false, true);
PlaySoundAtEntity("", "unlock_door.snt", "Door_1", 0.0f, false);
RemoveItem(Key_1);
}
}
////////////////////////////
// Run when leaving map
void OnLeave()
{
}
ERROR: expected ( at 16,8!
Could someone please help me fix this?