ironman0001
Member
Posts: 53
Threads: 8
Joined: Sep 2012
Reputation:
0
|
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 |
|