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
I need help with creating more than 1 scripts for my custom story
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#6
RE: I need help with creating more than 1 scripts for my custom story

Have it like this:

void OnStart()
{
AddEntityCollideCallback("Player", "TeleportScript", "PoopedYaPants", true, 1);
SetMessage("Messages", "Popup1", 0);
}

void PoopedYaPants(string &in asParent, string &in asChild, int alState)
{
SetEntityActive("Jesus", true);
AddPropForce("Jesus", 0, 0, 10000, "world");
PlaySoundAtEntity("", "24_iron_maiden.snt", "Jesus", 0, false);
PlaySoundAtEntity("", "react_breath_slow.snt", "Player", 0, false);
PlaySoundAtEntity("", "react_scare", "Player", 0, false);
}

void OnEnter()
{
AddEntityCollideCallback("Player", "Message_1", "Message1", true, 1);
}
(This post was last modified: 09-28-2012, 04:20 AM by Statyk.)
09-28-2012, 04:20 AM
Find


Messages In This Thread
RE: I need help with creating more than 1 scripts for my custom story - by Statyk - 09-28-2012, 04:20 AM



Users browsing this thread: 1 Guest(s)