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?
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


Messages In This Thread
Script Help? - by WatzUpzPeepz - 05-23-2011, 08:28 PM
RE: Script Help? - by Darion97 - 09-07-2011, 06:27 PM
RE: Script Help? - by Your Computer - 09-07-2011, 10:10 PM



Users browsing this thread: 1 Guest(s)