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
ironman0001 Offline
Member

Posts: 53
Threads: 8
Joined: Sep 2012
Reputation: 0
#7
RE: I need help with creating more than 1 scripts for my custom story

(09-28-2012, 04:20 AM)Statyk Wrote: 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);
}
Thanks for the help! But how do i know how to do that for when i wanna create more scripts?
09-28-2012, 04:41 AM
Find


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



Users browsing this thread: 1 Guest(s)