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
TeleportPlayer Help
Nomad923 Offline
Junior Member

Posts: 46
Threads: 15
Joined: Dec 2011
Reputation: 2
#3
RE: TeleportPlayer Help

(12-22-2011, 07:38 AM)Your Computer Wrote: You're supposed to provide a string for TeleportPlayer. Instead, you have provided an undeclared variable. Also, you may want to verify the definition of the Nightmare function.

Ok after doing what you said, i get the following errors now
execute (1, 1) : ERR : No matching signatures to 'OnGameStart()'

main (17, 24) : ERR : Expected '('

These are the changes i made.

Im new to making custom stories, so could you show me the changes you would have made to this.

void OnStart()
{
}

void OnEnter()
{
    AddEntityCollideCallback("Player", "Teleport", "Nightmare", true, 1);
}

void OnLeave()
{
}

void Nightmare(string &inasParent, string &in asChild, int alState)
{
    FadeOut(0.0f);
    TeleportPlayer(string PlayerStartArea_2);
    PlaySoundAtEntity("", "insanity_monster_roar01", "slime_pile_3", 0, false);
    FadeIn(0.0f);
}

Ignore the fade in part im going to change the time for the fade in.

[Image: qg_logo.png]
(This post was last modified: 12-22-2011, 07:54 AM by Nomad923.)
12-22-2011, 07:50 AM
Find


Messages In This Thread
TeleportPlayer Help - by Nomad923 - 12-22-2011, 06:44 AM
RE: TeleportPlayer Help - by Your Computer - 12-22-2011, 07:38 AM
RE: TeleportPlayer Help - by Nomad923 - 12-22-2011, 07:50 AM
RE: TeleportPlayer Help - by palistov - 12-22-2011, 09:01 AM
RE: TeleportPlayer Help - by Nomad923 - 12-22-2011, 09:12 AM



Users browsing this thread: 1 Guest(s)