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
Particle System help
Anxt Offline
Senior Member

Posts: 588
Threads: 12
Joined: Mar 2011
Reputation: 10
#3
RE: Particle System help

void ActivateEagle1(string &in asItem, string &in asEntity)
{
SetEntityActive("BlueShardStatic1", true);
SetEntityInteractionDisabled(asEntity, true);
SetEntityInteractionDisabled("BlueShardStatic1", true);
CreateParticleSystemAtEntity("E1PS", "ps_orb_light_core.ps", "PSEagle1", true);
SetLocalVarInt("B1", 1);
RemoveItem(asItem);
}

PreloadParticleSystem("ps_orb_light_core.ps");
^ is in my OnEnter function.
PSE1 is an entity that I shrank down to .001 in all dimensions so it would not be visible in game, but still provide an anchor for the PS. I was hoping it would work, since I couldn't get it to appear otherwise.

Basically what I want to happen is this:

The player has acquired a glowing blue shard of glass from an adjacent room to the one this code is for. Upon placing the shard on its pedestal, I want this particle system to appear at an eagle statue's mouth, which is where PSE1 is located. Does the size of the entity affect the appearance of the PS? Or is there something I am doing wrong? In case it matters, the particle system is not present in the level editor, since for some reason they remained active in game when I set them to inactive in the editor. All other parts of the function are working properly.

Sorry if I am not providing the right info, I am new to programming and this type of thing in general, so hopefully I'm not making a huge fool out of myself.

03-04-2011, 09:08 PM
Find


Messages In This Thread
Particle System help - by Anxt - 03-04-2011, 08:23 PM
RE: Particle System help - by Tanshaydar - 03-04-2011, 08:40 PM
RE: Particle System help - by Anxt - 03-04-2011, 09:08 PM
RE: Particle System help - by Tanshaydar - 03-04-2011, 10:11 PM
RE: Particle System help - by Anxt - 03-04-2011, 10:15 PM
RE: Particle System help - by Tanshaydar - 03-04-2011, 10:23 PM
RE: Particle System help - by Anxt - 03-04-2011, 10:32 PM
RE: Particle System help - by Tanshaydar - 03-05-2011, 07:26 AM
RE: Particle System help - by Anxt - 03-06-2011, 12:19 AM
RE: Particle System help - by Anxt - 03-06-2011, 04:44 AM
RE: Particle System help - by Tanshaydar - 03-06-2011, 08:36 AM



Users browsing this thread: 1 Guest(s)