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


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Scripting issues
Spermaharen Offline
Junior Member

Posts: 8
Threads: 3
Joined: Dec 2011
Reputation: 0
#5
RE: Scripting issues

(12-06-2011, 10:08 AM)Your Computer Wrote: You have a dangling code block directly under the "KEY 1 DONE" comment.
void OnStart()
{

AddUseItemCallback("", "Key1", "Door", "FUNCTION", true);
}

void FUNCTION(string &in asItem, string &in asEntity)
{

SetSwingDoorLocked("Door", false, true);
PlaySoundAtEntity("", "unlock_door", "Door", 0, false);
RemoveItem("Key1");

}

//////// KEY 1 DONE

{ <----------------------- Deleted still dont work !

AddEntityCollideCallback("Player", "script_1", "func_slam", true, 1);
}

void func_slam(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("door2", true, true);

PlaySoundAtEntity("", "react_breath_slow.snt", "Player", 0, false);

PlaySoundAtEntity("", "react_scare", "Player", 0, false); PlaySoundAtEntity("", "close_door.snt", "Player", 0, false);

GiveSanityDamage(5.0f, true);
}
12-06-2011, 10:27 AM
Find


Messages In This Thread
Scripting issues - by Spermaharen - 12-06-2011, 09:38 AM
RE: Scripting issues - by Tanshaydar - 12-06-2011, 09:54 AM
RE: Scripting issues - by Spermaharen - 12-06-2011, 09:56 AM
RE: Scripting issues - by Your Computer - 12-06-2011, 10:08 AM
RE: Scripting issues - by Spermaharen - 12-06-2011, 10:27 AM
RE: Scripting issues - by Your Computer - 12-06-2011, 11:57 AM
RE: Scripting issues - by Spermaharen - 12-06-2011, 12:06 PM



Users browsing this thread: 1 Guest(s)