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?
WatzUpzPeepz Offline
Member

Posts: 106
Threads: 12
Joined: May 2011
Reputation: 0
#1
Script Help?

Here is my script:

void OnStart()
{
AddEntityCollideCallback("Player", "DustFall", "CollideDustFallEffect", true, 1);
}

void CollideDustFallEffect(string &in asParent, string &in asChild, int alState)
{
StartPlayerLookAt("chandeller_large_2", 10, 50, "");
AddTimer("", 5.0f, "TimerStopLook");
SetEntityActive("ParticleSystem_4" , true);
SetEntityActive("stonefall" , true);
}

void TimerStopLook(string &in asTimer)
{
StopPlayerLookAt();
}

Can you find whats wrong with it? I'm such a noob at scripting...
Wierd thing is the particles activate but nothing else happens?
Thanks for reading!

05-23-2011, 08:28 PM
Find
Darion97 Offline
Junior Member

Posts: 29
Threads: 1
Joined: Jun 2011
Reputation: 1
#2
RE: Script Help?

You must put this:

void CreateParticleSystemAtEntity(string& asPSName, string& asPSFile, string& asEntity, bool abSavePS);
Creates a particle system on an entity.
asPSName - internal name
asPSFile - the particle system to use + extension .ps
asEntity - the entity to create the particle system at
abSavePS - determines whether a particle system should “remember” its state

09-07-2011, 06:27 PM
Find
Your Computer Offline
SCAN ME!

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
#3
RE: Script Help?

(05-23-2011, 08:28 PM)WatzUpzPeepz Wrote: Wierd thing is the particles activate but nothing else happens?

Enable debugging messages in game if you haven't already and add a debug message within the CollideDustFallEffect function and check to see if the message shows up in game.

Tutorials: From Noob to Pro
09-07-2011, 10:10 PM
Website Find




Users browsing this thread: 1 Guest(s)