GreyFox
Member
Posts: 162
Threads: 23
Joined: Jul 2011
Reputation:
2
|
1 Trigger Won't work!
Hey guys I have a bunch of triggers and stuff But this 1 Won't work and I have no idea why.
I'll give you the few lines for it and maybe i'm just blind and don't see something so obvious
void OnStart()
{
AddEntityCollideCallback("Player", "Blowpaper", "CollideBlowPaper", true, 1);
}
void CollideBlowPaper(string &in asParent, string &in asChild, int alState)
{
PlaySoundAtEntity("WindGust", "general_wind_whirl.snt", "paper_pile_1", 0, false);
CreateParticleSystemAtEntity("PaperBlow", "ps_dust_paper_blow.ps", "paper_pile_1", true);
AddPropImpulse("mansion_6", -3, 0, 0, "world");
}
The Trigger in the level editor is called "Blowpaper"
Thanks guys. I'm going to keep trying and looking.
-Grey Fox
Current Project
Forgotten
(This post was last modified: 08-08-2011, 10:08 PM by GreyFox.)
|
|
08-08-2011, 10:02 PM |
|
Dizturbed
Member
Posts: 160
Threads: 39
Joined: Jun 2011
Reputation:
0
|
RE: 1 Trigger Won't work!
wrong onstart()
use: void OnStart() instead
|
|
08-08-2011, 10:05 PM |
|
GreyFox
Member
Posts: 162
Threads: 23
Joined: Jul 2011
Reputation:
2
|
RE: 1 Trigger Won't work!
its like that. I just didn't put it correctly sorry. Like i said I have many other triggers all working execpt this one. and some are very similar (IE, create particle, play noise, etc)
I will edit that though so nobody mentions that again.
Though thank you for the very quick reply
Current Project
Forgotten
|
|
08-08-2011, 10:08 PM |
|