Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 3 Vote(s) - 3.67 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Anyone Need Help? (Thread #2)
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#19
RE: Anyone Need Help? (Thread #2)

Xtron, please let me answer these. It's my thread. Tongue

JetlinerX, I'll build the whole script from scratch that will show that when the player unlocks a door, a monster is set active and once it hits the player, the credits start.

void OnStart()
{
    AddUseItemCallback("", "Key01", "Door", "Func01", true);
    AddEntityCollideCallback("Player", "MonsterName", "Func02", true, 1);
}
void Func01(string &in asItem, string &in asEntity)
{
    RemoveItem(asItem);
    SetSwingDoorLocked(asEntity, false, true);
    PlaySoundAtEntity("", "unlock_door.snt", asEntity, 0, false);
    SetEntityActive("MonsterName", true);
}
void Func02(string &in asParent, string &in asChild, int alState)
{
    SetPlayerHealth(100);
    GivePlayerDamage(100, "Claws", false, false);
    FadeOut(3);
    FadePlayerRollTo(90, 8, 12);
    MovePlayerHeadPos(0, 3, 0, 3, 2.5);
    AddTimer("", 2, Func03);
}
void Func03(string &in asTimer)
{
    StartCredits("18_amb.ogg", true, "Credits", "Text", 5);
}

This may or may not work, I haven't tested it. By all means, you should edit and change some parts to the script to work with your script.

(This post was last modified: 07-24-2011, 01:18 PM by Kyle.)
07-24-2011, 01:17 PM
Find


Messages In This Thread
Anyone Need Help? (Thread #2) - by Kyle - 07-22-2011, 05:25 PM
RE: Anyone Need Help? (Thread #2) - by Rokotain - 07-22-2011, 06:36 PM
RE: Anyone Need Help? (Thread #2) - by Kyle - 07-22-2011, 07:27 PM
RE: Anyone Need Help? (Thread #2) - by Rokotain - 07-23-2011, 12:38 PM
RE: Anyone Need Help? (Thread #2) - by Kyle - 07-23-2011, 11:11 PM
RE: Anyone Need Help? (Thread #2) - by xtron - 07-24-2011, 04:22 AM
RE: Anyone Need Help? (Thread #2) - by xtron - 07-24-2011, 05:10 AM
RE: Anyone Need Help? (Thread #2) - by xtron - 07-24-2011, 05:17 AM
RE: Anyone Need Help? (Thread #2) - by xtron - 07-24-2011, 06:03 AM
RE: Anyone Need Help? (Thread #2) - by JetlinerX - 07-24-2011, 06:22 AM
RE: Anyone Need Help? (Thread #2) - by xtron - 07-24-2011, 06:27 AM
RE: Anyone Need Help? (Thread #2) - by JetlinerX - 07-24-2011, 06:28 AM
RE: Anyone Need Help? (Thread #2) - by Kyle - 07-24-2011, 01:17 PM
RE: Anyone Need Help? (Thread #2) - by JetlinerX - 07-24-2011, 07:21 PM
RE: Anyone Need Help? (Thread #2) - by zecuro - 07-24-2011, 11:14 PM
RE: Anyone Need Help? (Thread #2) - by Kyle - 07-25-2011, 12:58 AM
RE: Anyone Need Help? (Thread #2) - by zecuro - 07-25-2011, 07:10 PM
RE: Anyone Need Help? (Thread #2) - by Kyle - 07-25-2011, 08:50 PM
RE: Anyone Need Help? (Thread #2) - by zecuro - 07-25-2011, 09:29 PM
RE: Anyone Need Help? (Thread #2) - by Kyle - 07-25-2011, 09:44 PM
RE: Anyone Need Help? (Thread #2) - by zecuro - 07-25-2011, 10:26 PM
RE: Anyone Need Help? (Thread #2) - by Kyle - 07-25-2011, 10:49 PM
RE: Anyone Need Help? (Thread #2) - by zecuro - 07-25-2011, 10:55 PM
RE: Anyone Need Help? (Thread #2) - by Kyle - 07-25-2011, 10:59 PM
RE: Anyone Need Help? (Thread #2) - by zecuro - 07-25-2011, 11:03 PM
RE: Anyone Need Help? (Thread #2) - by Kyle - 07-25-2011, 11:07 PM
RE: Anyone Need Help? (Thread #2) - by zecuro - 07-25-2011, 11:17 PM
RE: Anyone Need Help? (Thread #2) - by Kyle - 07-25-2011, 11:35 PM
RE: Anyone Need Help? (Thread #2) - by Roenlond - 07-25-2011, 11:53 PM
RE: Anyone Need Help? (Thread #2) - by zecuro - 07-26-2011, 12:16 AM
RE: Anyone Need Help? (Thread #2) - by Kyle - 07-26-2011, 12:57 AM
RE: Anyone Need Help? (Thread #2) - by zecuro - 07-30-2011, 05:35 PM
RE: Anyone Need Help? (Thread #2) - by Kyle - 07-30-2011, 02:17 AM



Users browsing this thread: 5 Guest(s)