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
Problem
Tirilno Offline
Junior Member

Posts: 27
Threads: 5
Joined: Jul 2011
Reputation: 0
#1
Problem

Ehm, Hallo. My script doesn't work, I get an error when I try to enter the room.. it reads: 'PlayerStartArea_2' is not declared.

Here's where I think the problem is.

Under Onstart

AddEntityCollideCallback("Player", "teleport_1" , "CollidePlayerTeleport", true , 1);


void CollidePlayerTeleport(string &in asParent, string &in asChild, int alState)
{
TeleportPlayer(PlayerStartArea_2);
FadeOut(0);
FadeIn(20);
}
(This post was last modified: 08-20-2011, 12:57 PM by Tirilno.)
08-20-2011, 12:49 PM
Find
darkside Offline
Junior Member

Posts: 20
Threads: 2
Joined: Aug 2011
Reputation: 0
#2
RE: Problem

TeleportPlayer("PlayerStartArea_2");
you need the quotes.

Snowy background, anyone?
Now, where was that grunt with the santa hat ....
08-20-2011, 12:51 PM
Find
Tirilno Offline
Junior Member

Posts: 27
Threads: 5
Joined: Jul 2011
Reputation: 0
#3
RE: Problem

(08-20-2011, 12:51 PM)darkside Wrote: TeleportPlayer("PlayerStartArea_2");
you need the quotes.
Oh... Thanks.. xD
08-20-2011, 12:56 PM
Find




Users browsing this thread: 1 Guest(s)