flamez3
Posting Freak
Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation:
57
|
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 |
|
Tanshaydar
From Beyond
Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation:
67
|
RE: Activating fog?
Is it a particle?
Particles cannot be activated through that code. Use "CreateParticleAtEntity" instead.
|
|
11-11-2011, 10:16 AM |
|
flamez3
Posting Freak
Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation:
57
|
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 |
|
Khyrpa
Senior Member
Posts: 638
Threads: 10
Joined: Apr 2011
Reputation:
24
|
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 |
|
flamez3
Posting Freak
Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation:
57
|
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 |
|
Khyrpa
Senior Member
Posts: 638
Threads: 10
Joined: Apr 2011
Reputation:
24
|
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 |
|
flamez3
Posting Freak
Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation:
57
|
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 |
|
|