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
Looking at, or not looking at script
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#7
RE: Looking at, or not looking at script

(05-06-2012, 04:47 PM)Dutton Wrote: I think you'll be able to get you answer in this thread. palistov made it work in another thread with the exact same problem

http://www.frictionalgames.com/forum/thread-7135.html
No sorry. I tried making my script look like this:


void OnStart()
{
SetEntityPlayerLookAtCallback("corpse_male_1", "CorpseDisappear_1", false);

}


void CorpseDisappear_1(string &in entity, int alState)
{
if(alState == -1)
{
SetEntityActive("corpse_male_1", false);
}
}

The game plays fine, but the body disappears after one second

Trying is the first step to success.
05-06-2012, 05:56 PM
Find


Messages In This Thread
RE: Looking at, or not looking at script - by FlawlessHappiness - 05-06-2012, 05:56 PM



Users browsing this thread: 1 Guest(s)