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
SetEntityPlayerLookAtCallback HUGE PROBLEM!
lllDash Offline
Member

Posts: 108
Threads: 12
Joined: Apr 2012
Reputation: 3
#3
RE: SetEntityPlayerLookAtCallback HUGE PROBLEM!

(10-27-2012, 11:52 AM)Unearthlybrutal Wrote: This should work Smile

void OnEnter()

{
SetEntityPlayerLookAtCallback("ritual_prisoner_1", "bodysound", true);
}

void bodysound(string &in asEntity, int alState)
{

if(alState == 1)
{

SetEntityActive("ritual_prisoner_1", false);
PlaySoundAtEntity("", "scare_male_terrified5.snt", "ScriptArea_26", 0, false);
}

}
(FacePalm) Oh, thanks. I'm an idiot Rolleyes . But it still didn't work! However I eventually did get it to work. Looking at ritual_prisoner_1 does nothing, but looking at a scriptarea does. Dodgy Why is it even called SetEntityPlayerLookAtCallback if it doesn't even work with entities?!

Although I'm still soooooo angry that this problem had wasted so much of my time, I am still grateful for your help. thanx
10-27-2012, 12:40 PM
Find


Messages In This Thread
RE: SetEntityPlayerLookAtCallback HUGE PROBLEM! - by lllDash - 10-27-2012, 12:40 PM



Users browsing this thread: 1 Guest(s)