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
Please Explain This...
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#1
Tongue  Please Explain This...

For some reason, I'm having trouble with getting pathnodes to work and for the end of the pathnodes that removes servant_grunt_1.

The Script:

void OnStart()

{
AddEntityCollideCallback("CellarDoor2" , "ScriptArea_2" , "CollideRoomThree" , true, 1);
AddEntityCollideCallback("Player" , "ScriptArea_1" , "CollideRoomTwo" , true, 1);
AddUseItemCallback("", "Cellar Key" , "CellarDoor" , "UsedKeyOnDoor" , true);
}

void CollideRoomTwo(string &in asParent, string &in asChild, int alState)
{
SetSwingDoorClosed("cellar_wood01_1", true, true);
GiveSanityDamage(25, true);
}

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

SetSwingDoorLocked(asEntity, false, true);
SetLevelDoorLocked(asEntity, false);

PlaySoundAtEntity("unlocksound", "unlock_door.snt", asEntity, 0.0f, false);

RemoveItem(asItem);
}
void CollideRoomThree(string &in asParent, string &in asChild, int alstate)
{
SetEntityActive("servant_grunt_1" , true);
}

void OnEnter()
{

}

void OnLeave()
{

}

10-11-2010, 09:54 PM
Find
Youcef Offline
Junior Member

Posts: 48
Threads: 5
Joined: Sep 2010
Reputation: 0
#2
RE: Please Explain This...

http://www.frictionalgames.com/forum/thr...l#pid37680

10-11-2010, 10:02 PM
Website Find
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#3
RE: Please Explain This...

Thanks! Big Grin A nice and simple answer!

10-11-2010, 11:26 PM
Find




Users browsing this thread: 1 Guest(s)