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
Custom Story Error
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#3
RE: Custom Story Error

Actually; hold on, you have a few errors...

Try This!
PHP Code: (Select All)
void OnStart()
{
AddEntityCollideCallback("Player", "PlayerStop", "SetPlayerActive", true, 1);
}

void SetPlayerActive(string &in asParent, string &in asChild, int alState)
{
SetPlayerActive(false);
StartPlayerLookAt("Grunt", 5.0f, 5.0f, "");
AddTimer("", 5.0f, "StartWalk");
}

void StartWalk(string &in asTimer)
{
SetPlayerActive(true);
StopPlayerLookAt();
} 

See if it works after that Smile (But if you already have an OnStart(), make sure to put the AddEntityCollideCallback inside of it)

Discord: Romulator#0001
[Image: 3f6f01a904.png]
(This post was last modified: 03-23-2014, 10:57 AM by Romulator.)
03-23-2014, 10:50 AM
Find


Messages In This Thread
Custom Story Error - by Hungerzz - 03-23-2014, 10:45 AM
RE: Custom Story Error - by 7heDubz - 03-23-2014, 10:50 AM
RE: Custom Story Error - by Romulator - 03-23-2014, 10:50 AM
RE: Custom Story Error - by Hungerzz - 03-23-2014, 10:54 AM
RE: Custom Story Error - by Romulator - 03-23-2014, 10:57 AM
RE: Custom Story Error - by Hungerzz - 03-23-2014, 11:07 AM
RE: Custom Story Error - by Romulator - 03-23-2014, 11:10 AM
RE: Custom Story Error - by Hungerzz - 03-23-2014, 11:11 AM
RE: Custom Story Error - by 7heDubz - 03-23-2014, 11:21 AM
RE: Custom Story Error - by Romulator - 03-23-2014, 12:01 PM
RE: Custom Story Error - by Hungerzz - 03-23-2014, 03:17 PM
RE: Custom Story Error - by Straxedix - 03-23-2014, 08:27 PM
RE: Custom Story Error - by Romulator - 03-23-2014, 08:57 PM
RE: Custom Story Error - by 7heDubz - 03-24-2014, 04:00 AM
RE: Custom Story Error - by Hungerzz - 03-25-2014, 04:31 PM



Users browsing this thread: 1 Guest(s)