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 Particels won't work!
trollox Offline
Member

Posts: 215
Threads: 16
Joined: Dec 2011
Reputation: 3
#17
RE: Particels won't work!

Well it still dosen't work add. Here's the intiere script :



void OnStart()
{
AddEntityCollideCallback("Player", "ScriptArea_1", "Door", true, 1);
AddEntityCollideCallback("Player", "ScriptArea_1", "Script", true, 1);
AddEntityCollideCallback("Player", "ScriptArea_2", "Door2", true, 1);
AddEntityCollideCallback("Player", "ScriptArea_3", "Door1", true, 1);
AddEntityCollideCallback("Player", "FlyingJesus_1", "Scare", true, 1);
AddEntityCollideCallback("Jesus_1", "FlyingJesus_1", "Sound", true, 1);
AddEntityCollideCallback("Player", "PortalArea_1", "Portal", true, 1);
}

void Door(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("Door_1", true);
SetEntityActive("ScriptArea_2", true);
SetEntityActive("ScriptArea_3", true);
}

void Door1(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("Door_1", false);
}

void Scare(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("Jesus_1", true);
AddPropForce("Jesus_1", 0, 0, 0, "World");
PlaySoundAtEntity("", "24_iron_maiden.snt", "FlyingJesus_1", 0, true);
}

void Door2(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("Door_2", true);
}

void Script(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("ScriptArea_2", true);
}

void Portal(string &in asParent, string &in asChild, int alState)
{
CreateParticleSystemAtEntity("PortalPs", "guardian_appear_explosion.ps", "PortalArea_1", false);
}


////////////////////////////
// Run when entering map
void OnEnter()
{

}

////////////////////////////
// Run when leaving map
void OnLeave()
{
}



Okay so the PortalPs i got no clue what that is. The "guardian_appear_explosion.ps" is the Particle. And the PortalArea_1 is the area you collide with. So i'm guessing that the PortalPs Has somthing to do with why it's not working. Sort of didn't understand what it is , and it's function
02-06-2012, 02:42 PM
Find


Messages In This Thread
Particels won't work! - by trollox - 02-05-2012, 07:36 PM
RE: Particels won't work! - by Khyrpa - 02-05-2012, 08:04 PM
RE: Particels won't work! - by trollox - 02-05-2012, 09:18 PM
RE: Particels won't work! - by Ninami - 02-05-2012, 09:25 PM
RE: Particels won't work! - by trollox - 02-05-2012, 09:28 PM
RE: Particels won't work! - by Ninami - 02-05-2012, 09:44 PM
RE: Particels won't work! - by trollox - 02-05-2012, 10:27 PM
RE: Particels won't work! - by Ninami - 02-05-2012, 10:34 PM
RE: Particels won't work! - by Your Computer - 02-05-2012, 10:59 PM
RE: Particels won't work! - by Ninami - 02-05-2012, 11:06 PM
RE: Particels won't work! - by Your Computer - 02-05-2012, 11:12 PM
RE: Particels won't work! - by Ninami - 02-05-2012, 11:26 PM
RE: Particels won't work! - by trollox - 02-06-2012, 08:01 AM
RE: Particels won't work! - by Khyrpa - 02-06-2012, 08:58 AM
RE: Particels won't work! - by trollox - 02-06-2012, 01:53 PM
RE: Particels won't work! - by Your Computer - 02-06-2012, 02:20 PM
RE: Particels won't work! - by trollox - 02-06-2012, 02:42 PM
RE: Particels won't work! - by Your Computer - 02-06-2012, 03:10 PM



Users browsing this thread: 1 Guest(s)