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
Can Someone Tell Me The Wrong??...
Jayvee17 Offline
Junior Member

Posts: 25
Threads: 6
Joined: May 2011
Reputation: 0
#3
RE: Can Someone Tell Me The Wrong??...

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 '('
(This post was last modified: 05-31-2011, 01:56 PM by Jayvee17.)
05-31-2011, 01:44 PM
Find


Messages In This Thread
Can Someone Tell Me The Wrong??... - by Jayvee17 - 05-31-2011, 01:03 PM
RE: Can Someone Tell Me The Wrong??... - by Jayvee17 - 05-31-2011, 01:44 PM
RE: Can Someone Tell Me The Wrong??... - by Kyle - 06-01-2011, 11:05 AM



Users browsing this thread: 2 Guest(s)