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
A script problem. [SOLVED]
Seragath Offline
Junior Member

Posts: 34
Threads: 1
Joined: Jan 2011
Reputation: 0
#1
A script problem. [SOLVED]

Hey. I have a problem with this script. Since I'm really new to C++ as a whole, I cannot actually see what I am doing wrong. But here is the script. An explanation of what I am doing wrong and why, would be appreciated.

Seragath.

void OnStart()
{
AddEntityCollideCallback("Player", "Faint","Faint_scare", true, 1);
}

////Room_With_Key_Scare//////////
/////////////////////////////////

void Faint_scare(string &in asParent, string &in asChild, int alState)
{
GiveSanityDamage(1000, true);
AddTimer("Doom", 2, "TeleportPlayer");
FadeOut(0)
}

void TeleportPlayer(string &in asParent, string &in asChild, string &in asTimer, int alState)
{
TeleportPlayer("PlayerStartArea_2");
FadeIn(20);
AddTimer("Doom_end", 2, "Teleportback");
}

void Teleportback(string &in asParent, string &in asChild, string &in asTimer, int alState)
{
TeleportPlayer("PlayerStartArea_3");
}
////Room_With_Key_Scare_Ends///////
///////////////////////////////////

It does trigger the first FadeOut(0) etc. But not the rest of it. (And this "string &in asSomething") is still quite confusing for me. Sad
(This post was last modified: 01-12-2011, 01:41 PM by Seragath.)
01-12-2011, 11:20 AM
Find


Messages In This Thread
A script problem. [SOLVED] - by Seragath - 01-12-2011, 11:20 AM
RE: A script problem. - by jens - 01-12-2011, 11:40 AM
RE: A script problem. - by Seragath - 01-12-2011, 12:48 PM
RE: A script problem. - by Tottel - 01-12-2011, 01:00 PM
RE: A script problem. - by Seragath - 01-12-2011, 01:10 PM
RE: A script problem. - by jens - 01-12-2011, 01:18 PM
RE: A script problem. - by Seragath - 01-12-2011, 01:40 PM
RE: A script problem. - by Tottel - 01-12-2011, 01:46 PM
RE: A script problem. - by Seragath - 01-12-2011, 01:53 PM



Users browsing this thread: 1 Guest(s)