The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
Activating fog? + New question :)
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#1
Activating fog? + New question :)

I need to active some fog on a script, I've tried the SetEntityActive part but it hasn't seemed to work. Any help?

New question:

I'm trying to use the SetEntityPlayerLookAtCallback

void OnStart()
{
SetEntityPlayerLookAtCallback("prisoner", "PrisonerLookAt", false);

}



void PrisonerLookAt(string &in asEntity, int alState)
{
if (alState == 1)
{
SetEntityActive("prisoner", false);
PlaySoundAtEntity("", "enemy_hallucination_disappear.snt", "Player", 0, false);
}
}

It loads fine, But when i look at the object it doesn't disappear

(This post was last modified: 11-11-2011, 11:47 AM by flamez3.)
11-11-2011, 10:06 AM
Find


Messages In This Thread
Activating fog? + New question :) - by flamez3 - 11-11-2011, 10:06 AM
RE: Activating fog? - by Tanshaydar - 11-11-2011, 10:16 AM
RE: Activating fog? - by flamez3 - 11-11-2011, 10:21 AM
RE: Activating fog? - by Khyrpa - 11-11-2011, 10:34 AM
RE: Activating fog? - by flamez3 - 11-11-2011, 10:43 AM
RE: Activating fog? + New question :) - by Khyrpa - 11-11-2011, 12:48 PM



Users browsing this thread: 2 Guest(s)