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
script fail
klacke Offline
Junior Member

Posts: 7
Threads: 4
Joined: May 2011
Reputation: 0
#4
RE: script fail

(06-05-2011, 01:16 PM)Kyle Wrote: Is this your complete script? If not, here is the modified version:

void MakePrisonerDisapear_1(string &in asParent, string &in asChild, int alState)
{
SetPlayerActive(false);
PlaySoundAtEntity("", "leather_walk.snt", "prisoner", 0.0f, false);
PlaySoundAtEntity("", "react_scare.snt", "Player", 0.0f, false);
StartPlayerLookAt("LookAtPrisoner", 5.0f, 5.0f, "");
AddTimer("", 1.0f, "MakePrisonerDisappear_2");
}
void MakePrisonerDisappear_2(string &in asTimer)
{
GiveSanityDamage(5, true);
SetEntityActive("prisoner", false);
SetPlayerActive(true);
}

Saw now that i forgot 1 line

AddEntityCollideCallback("Player", "DisapearGuy1", "MakePrisonerDisappear_1", true, 1);

cuz when i copied yours i still got that error message...
06-05-2011, 02:24 PM
Find


Messages In This Thread
script fail - by klacke - 06-05-2011, 12:58 PM
RE: script fail - by Apjjm - 06-05-2011, 01:16 PM
RE: script fail - by Kyle - 06-05-2011, 01:16 PM
RE: script fail - by klacke - 06-05-2011, 02:24 PM
RE: script fail - by ferryadams10 - 06-08-2011, 01:21 PM



Users browsing this thread: 1 Guest(s)