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


Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
After player Died restart Map HeLpiE Help
vanjavk Offline
Member

Posts: 54
Threads: 5
Joined: Sep 2010
Reputation: 0
#5
RE: After player Died restart Map HeLpiE Help

(04-18-2011, 10:51 PM)Dalroc Wrote: Post your script mate Smile

this is some of code..
void OnStart()
{
    AddEntityCollideCallback("Player", "OpenCloseTrigger1", "CollideOpenCloseTrigger1", true, 0);
    AddEntityCollideCallback("Player", "AreaIForgot", "CollideAreaIForgot", true, 1);;
    AddUseItemCallback("useexit", "key_tomb_rusty_5", "prison_1", "UseKey",true);
    AddEntityCollideCallback("Player", "AreaIForgot1", "CollideAreaIForgot1", true, 1);
    AddEntityCollideCallback("Player", "AreaIForgot2", "CollideAreaIForgot2", true, 1);
    AddEntityCollideCallback("Player", "AreaIForgot3", "CollideAreaIForgot3", true, 1);
    AddEntityCollideCallback("Player", "AreaIForgot4", "CollideAreaIForgot4", true, 1);
    AddEntityCollideCallback("Player", "AreaIForgot6", "CollideAreaIForgot6", true, 1);
    AddEntityCollideCallback("Player", "AreaIForgot5", "CollideAreaIForgot5", true, 1);
    AddEntityCollideCallback("Player", "AreaKnife", "CollideAreaKnife", true, 1);
    AddEntityCollideCallback("Player", "fallingtele", "Teleport", false, 1);
    AddEntityCollideCallback("Player", "aghagh", "Teleport", false, 1);
    AddEntityCollideCallback("Player", "Creak", "CollideAreaCreak", false, 1);
    AddEntityCollideCallback("Player", "AreaGiveMeTheKnifeAndKillTheMonster", "CollideAreaAreaGiveMeTheKnifeAndKillTheMonster", true, 1);
    AddEntityCollideCallback("Player", "OutCreak", "CollideAreaOutCreak", false, -1);
    AddEntityCollideCallback("servant_grunt_1", "kinfeer_1", "KillGrunt", true, 1);

}
//killing monster
void KillGrunt(string &in asParent, string &in asChild, int alState)
{
    FadeEnemyToSmoke(asParent, true);
}
void aghagh(string &in asTimer)
{
SetMessage("Message", "Text1", 0);
GiveSanityBoost ();
}

if (GetPlayerHealth == 0)
    {
        ChangeMap("DUNGEON", "PlayerStartArea_1", "", "");
    }


// wood creak
void CollideAreaCreak(string &in asParent, string &in asChild, int alState)
{
    AddEffectVoice("creak.ogg", "creak.ogg", "Voice", "creak", false, "", 0, 0);
}
...

vanjavk
04-19-2011, 12:06 PM
Find


Messages In This Thread
RE: After player Died restart Map HeLpiE Help - by vanjavk - 04-19-2011, 12:06 PM



Users browsing this thread: 2 Guest(s)