Can You Explain It Clearly Please..??
I Change My Code To:
////////////////////////////
// Run first time starting map
void OnStart()
{
FadeIn(3);
SetPlayerActive(true);
ShowPlayerCrossHairIcons(true);
SetInventoryDisabled(false);
SetPlayerJumpDisabled(false);
SetPlayerCrouchDisabled(false);
AddUseItemCallback("", "Door_3_Key", "Door_3", "UsedKeyOnDoor_03", true);
AddUseItemCallback("", "Key_Of_Freedom", "Door_Of_Freedom", "UsedKeyOnDoor_Of_Freedom", true);
SetSwingDoorLocked("Door_3", false, true);
PlaySoundAtEntity("", "unlock_door", "Door_3", 0, false);
RemoveItem("Door_3_Key");
void UsedKeyOnDoor_03(string &in asItem, string &in asEntity)
SetSwingDoorLocked("Door_Of_Freedom", false, true);
PlaySoundAtEntity("", "unlock_door", "Door_Of_Freedom", 0, false);
RemoveItem("Key_Of_Freedom");
void UsedKeyOnDoor_Of_Freedom(string &in asItem, string &in asEntity)
GiveItemFromFile("lantern", "lantern.ent");
SetEntityPlayerInteractCallback("Key_Of_Freedom", "Func01", true);
void Func01(string &in asEntity)
SetEntityActive("servant_grunt_1", true);
}
(05-31-2011, 01:44 PM)Jayvee17 Wrote: Can You Explain It Clearly Please..??
I Change My Code To:
////////////////////////////
// Run first time starting map
void OnStart()
{
FadeIn(3);
SetPlayerActive(true);
ShowPlayerCrossHairIcons(true);
SetInventoryDisabled(false);
SetPlayerJumpDisabled(false);
SetPlayerCrouchDisabled(false);
AddUseItemCallback("", "Door_3_Key", "Door_3", "UsedKeyOnDoor_03", true);
AddUseItemCallback("", "Key_Of_Freedom", "Door_Of_Freedom", "UsedKeyOnDoor_Of_Freedom", true);
SetSwingDoorLocked("Door_3", false, true);
PlaySoundAtEntity("", "unlock_door", "Door_3", 0, false);
RemoveItem("Door_3_Key");
void UsedKeyOnDoor_03(string &in asItem, string &in asEntity)
SetSwingDoorLocked("Door_Of_Freedom", false, true);
PlaySoundAtEntity("", "unlock_door", "Door_Of_Freedom", 0, false);
RemoveItem("Key_Of_Freedom");
void UsedKeyOnDoor_Of_Freedom(string &in asItem, string &in asEntity)
GiveItemFromFile("lantern", "lantern.ent");
SetEntityPlayerInteractCallback("Key_Of_Freedom", "Func01", true);
void Func01(string &in asEntity)
SetEntityActive("servant_grunt_1", true);
}
When I Try This One It Says:
FATAL ERROR:Could not load script file 'custom_stories/The House/maps/TheHouse.hps'!
main (18, 30) : ERR :Expected '('
main (24, 38) : ERR :Expected '('
main (29, 20) : ERR :Expected '('