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 Particle Effects
GreyFox Offline
Member

Posts: 162
Threads: 23
Joined: Jul 2011
Reputation: 2
#1
Activating Particle Effects

Hey Guys. Just wondering something

Could you do

Void Func1(string &in asEntity) (Dunno if thats correct but that part doesn't matter)

{
SetEntityActive("ParticleSytemHere", true);
}

Just wondering if this works because I'm kinda stumped why It's not working for me.

I have a door and when you go to open it I have a Loud Impact noise to scare you and I though some wood debris would be a nice effect but I never see it. Did I do this wrong.

Thanks
-Grey Fox

Current Project
Forgotten
08-07-2011, 07:56 PM
Find Reply
Tanshaydar Offline
From Beyond

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

Nope;
http://wiki.frictionalgames.com/hpl2/amn..._functions

void CreateParticleSystemAtEntity(string& asPSName, string& asPSFile, string& asEntity, bool abSavePS);

Creates a particle system on an entity.

asPSName - internal name
asPSFile - the particle system to use + extension .ps
asEntity - the entity to create the particle system at
abSavePS - determines whether a particle system should “remember” its state

08-07-2011, 08:01 PM
Website Find Reply
GreyFox Offline
Member

Posts: 162
Threads: 23
Joined: Jul 2011
Reputation: 2
#3
RE: Activating Particle Effects

So I do I even need a particle system in the level editor? or can I just delete the ones i had and use this way?

Current Project
Forgotten
08-07-2011, 08:27 PM
Find Reply
Tanshaydar Offline
From Beyond

Posts: 3,085
Threads: 17
Joined: Mar 2009
Reputation: 67
#4
RE: Activating Particle Effects

They don't need to be in the editor. That function creates a ps at desired entity anytime anywhere.

08-07-2011, 08:56 PM
Website Find Reply
GreyFox Offline
Member

Posts: 162
Threads: 23
Joined: Jul 2011
Reputation: 2
#5
RE: Activating Particle Effects

Alright thank you. Your a Big Help.

Current Project
Forgotten
08-07-2011, 09:56 PM
Find Reply




Users browsing this thread: 1 Guest(s)