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

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

Okay so here's my 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("Portal_1", "Portal_1.ps", "PortalAltar_1", false);
}


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

}

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


But for some reason the Particle that (the demon alike one). Dosen't activate when i hit the area it activates just as i enter the map , andi don't want that. Maybe this script is incorrect , if so please help me :/.
Trollox.
(This post was last modified: 02-05-2012, 07:37 PM by trollox.)
02-05-2012, 07:36 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)