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
Tanshaydar Offline
From Beyond

Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation: 67
#2
RE: Activating fog?

Is it a particle?
Particles cannot be activated through that code. Use "CreateParticleAtEntity" instead.

11-11-2011, 10:16 AM
Website Find
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#3
RE: Activating fog?

(11-11-2011, 10:16 AM)Tanshaydar Wrote: Is it a particle?
Particles cannot be activated through that code. Use "CreateParticleAtEntity" instead.
No it's from the editor on the left side. 10 down. "Fog Areas"?

11-11-2011, 10:21 AM
Find
Khyrpa Offline
Senior Member

Posts: 638
Threads: 10
Joined: Apr 2011
Reputation: 24
#4
RE: Activating fog?

SetFogActive(bool abActive);
SetFogColor(float afR, float afG, float afB, float afA);
SetFogProperties(float afStart, float afEnd, float afFalloffExp, bool abCulling);


its for global fog then, but you can just deactivate it with scripts when there isnt need for it.

11-11-2011, 10:34 AM
Find
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#5
RE: Activating fog?

(11-11-2011, 10:34 AM)Khyrpa Wrote: SetFogActive(bool abActive);
SetFogColor(float afR, float afG, float afB, float afA);
SetFogProperties(float afStart, float afEnd, float afFalloffExp, bool abCulling);


its for global fog then, but you can just deactivate it with scripts when there isnt need for it.
I looked at those, but it's a global fog, I want to active like 3 on timed functions?

11-11-2011, 10:43 AM
Find
Khyrpa Offline
Senior Member

Posts: 638
Threads: 10
Joined: Apr 2011
Reputation: 24
#6
RE: Activating fog? + New question :)

I don't think you can really set separate fogs active... And fogs are overrated anyways! :u

11-11-2011, 12:48 PM
Find
flamez3 Offline
Posting Freak

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

(11-11-2011, 12:48 PM)Khyrpa Wrote: I don't think you can really set separate fogs active... And fogs are overrated anyways! :u
Damn.... :V

11-11-2011, 12:52 PM
Find




Users browsing this thread: 1 Guest(s)