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
Simple Scripting Problem
physcostealth Offline
Junior Member

Posts: 25
Threads: 12
Joined: Mar 2014
Reputation: 0
#4
RE: Simple Scripting Problem

Hey MudBill, you've been building the awesome temple story I've been watching lately. How would I be able to merge the two functions?

And thanks Amn, the misspelled code got rid of the crash. But when I enter the area the PlayerLookAt function doesn't do anything (the music plays, so I know that string is working). Could it be related to the structuring of the code? If so, how would I be able to fix this?

I was able to fix the problem. I combined the two functions together... I'm not sure if that's what fixed it or not.

void OnStart()
{
    AddEntityCollideCallback("Player", "SoundArea", "trigger", true, 1);
}

void trigger(string &in asParent, string &in asChild, int alState)

{
    PlayMusic("ThePatronusLight.ogg", true, 1.0, 0, 1, false);
    StartPlayerLookAt("mansion_door", 1.0f, 1.0f, "");
    AddTimer("TimeDoor", 3.0f, "timerstop");
}
    
void timerstop(string&in asTimer)
{
    StopPlayerLookAt();
    SetPlayerActive(true);
}
(This post was last modified: 03-13-2014, 01:13 AM by physcostealth.)
03-13-2014, 01:05 AM
Find


Messages In This Thread
Simple Scripting Problem - by physcostealth - 03-13-2014, 12:12 AM
RE: Simple Scripting Problem - by Mudbill - 03-13-2014, 12:47 AM
RE: Simple Scripting Problem - by Daemian - 03-13-2014, 12:53 AM
RE: Simple Scripting Problem - by physcostealth - 03-13-2014, 01:05 AM
RE: Simple Scripting Problem - by Mudbill - 03-13-2014, 05:19 PM
RE: Simple Scripting Problem - by DnALANGE - 03-14-2014, 02:03 AM



Users browsing this thread: 1 Guest(s)