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 A bit confused. Help?
Zjurc Offline
Junior Member

Posts: 43
Threads: 8
Joined: Jan 2012
Reputation: 0
#1
Sad  A bit confused. Help?

Okay so I scripted for a while, etc. And when I got to half, I though 'Hey, lets test it out!' But my game crashed and it displayed some weird errors I cannot seem to solve :c I would really appreciate if you could take a look and see what's wrong. Thanks!

This is the error it is displaying:

[Image: image211.png]


And this is the script:


Quote:void OnStart()
{
PlayMusic("04_amb.ogg", true, 0.3, 4, 1, true);
AddEntityCollideCallback("Player", "ScriptArea_1", "TimeToStartThisTrailerReally", true, 1);
}

void TimeToStartThisTrailerReally(string &in asParent, string &in asChild, int alState)
{
SetPlayerActive(false); // Lolz you are gonna stay there for a while
PlaySoundAtEntity("GUARDIAN_MAAAAD", "guardian_activated.snt", "CreepyBitch", "3", false);
StartScreenShake(0.7, 11, 4, 4);
AddTimer("SomethingToDoWithSounds", 4, "SomeRocksFallDown");
}

void SomeRocksFallDown(string &in asTimer)
{
PlaySoundAtEntity("ROCKSPLOSION", "explosion_rock_large.snt", "Player", 0, false);
AddTimer("ICannotMakeUpNames", 0.1, "LETS_SPIN_THIS_SHIT");
}

void LETS_SPIN_THIS_SHIT(string &in asTimer)
{
PlaySoundAtEntity("HeartAttack", "react_pant.snt", "Player", 0, false);
StartPlayerLookAt("PlayerLooksBack", 0.3, 0, "");
AddTimer("", 0.4, "TurnBack");
}

void TurnBack(string &in asTimer)
{
StopPlayerLookAt();
StartPlayerLookAt("PlayerLooksFront", 0.3, 0, "");
AddTimer("", 0.3, "LookRight"
}

void LookRight(string &in asTimer)
{
StopPlayerLookAt();
StartPlayerLookAt("PlayerLooksRight", 0.4, 0, "");
AddTimer("", 0.2, "SighInRelief"
}

void SighInRelief(string &in asTimer)
{
StopPlayerLookAt();
StartPlayerLookAt("LookBack", 0.5, "");
PlaySoundAtEntity("Sigh", "react_breath_slow.snt", "Player", 0, false);
AddTimer("", 0.4, "WATCHOUT"
}

void WATCHOUT(string &in asTimer)
{
StopPlayerLookAt();
StartPlayerLookAt("PlayerLooksFront", 0.4, 0, "");
AddTimer("", 0.4, "TooLate");
}

void TooLate(string &in asTimer)
{

}

Thanks in advance!

Keep in mind this script is still WIP so yeah I am aware that last void is literally empty and serves no purpose.
07-22-2012, 06:43 PM
Find


Messages In This Thread
A bit confused. Help? - by Zjurc - 07-22-2012, 06:43 PM
RE: A bit confused. Help? - by Steve - 07-22-2012, 06:55 PM
RE: A bit confused. Help? - by Zjurc - 07-22-2012, 08:19 PM
RE: A bit confused. Help? - by Steve - 07-22-2012, 08:28 PM
RE: A bit confused. Help? - by Zjurc - 07-22-2012, 08:52 PM
RE: A bit confused. Help? - by PixelHurricane - 07-24-2012, 04:08 AM



Users browsing this thread: 1 Guest(s)