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
Script Help Particle Effects help
Smackdown Offline
Junior Member

Posts: 13
Threads: 3
Joined: Jan 2013
Reputation: 0
#1
Particle Effects help

hey there! Smile


First things first: I've searched several times and I didn't find anything helpfull.

I want that dust falls down when the player passes a script area. (e.g. ScriptArea_4) So I've tried it with activate like with other objects. But it didn't work. I know I have to do something with "CreateParticleSystemAtEntity"

here are my tries:

Quote:void OnStart()
{
...
AddEntityCollideCallback("Player", "ScriptArea_4", "staub", true, 1);
...
}


void staub(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("", "28_done03.snt", "Player", 0, false);
SetEntityActive("ParticleSystem_17", true);
SetEntityActive("ParticleSystem_19", true);
CreateParticleSystemAtEntity("E1PS", "ps_debris_tunnel.ps", "ScriptArea_4", true);

}

Can anyone help me? Blush
01-03-2013, 07:24 PM
Find


Messages In This Thread
Particle Effects help - by Smackdown - 01-03-2013, 07:24 PM
RE: Particle Effects help - by Statyk - 01-03-2013, 07:38 PM
RE: Particle Effects help - by Smackdown - 01-03-2013, 07:46 PM
RE: Particle Effects help - by Statyk - 01-03-2013, 07:56 PM
RE: Particle Effects help - by Smackdown - 01-03-2013, 08:10 PM
RE: Particle Effects help - by Statyk - 01-03-2013, 08:22 PM
RE: Particle Effects help - by Smackdown - 01-03-2013, 08:26 PM
RE: Particle Effects help - by Statyk - 01-03-2013, 08:43 PM
RE: Particle Effects help - by Smackdown - 01-03-2013, 08:57 PM
RE: Particle Effects help - by Statyk - 01-03-2013, 09:36 PM
RE: Particle Effects help - by Smackdown - 01-03-2013, 09:55 PM
RE: Particle Effects help - by NaxEla - 01-04-2013, 12:21 AM
RE: Particle Effects help - by Smackdown - 01-04-2013, 11:42 AM



Users browsing this thread: 1 Guest(s)