The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
Changing map after being killed by monster
Sprytny Offline
Junior Member

Posts: 7
Threads: 3
Joined: Mar 2012
Reputation: 0
#1
Changing map after being killed by monster

Hi, I have big problem as I wrote in thread subject. I have the door and after putting the key into them the monster appears. I want the player to spawn on the other map after being killed by him. I don't have any idea, here is a part of my code:



void DoorKeyIn(string &in asItem, string &in asEntity)
{
    SetSwingDoorLocked("ambushdoor", false, true);
    PlaySoundAtEntity("", "unlock_door", "ambushdoor", 0, false);
    RemoveItem("ambushdoorkey");
    PlayGuiSound("player_bodyfall5.ogg",1);
    PlaySoundAtEntity("", "enabled.snt", "servant_grunt_1", 0,false);
    PlaySoundAtEntity("", "attack_claw_hit.snt", "servant_grunt_1", 0,false);
    SetEntityActive("servant_grunt_1", true);
}

void CheckPointAbduction(string &in asName, int alCount)
{
    AddTimer("ChangeMap", 5.0, "TimerChangeMap");
    FadeOut(0.0f);
    SetPlayerActive(false);
    PlayGuiSound("22_end.snt", 1.0f);
}
void TimerChangeMap(string &in asChangeMap)
{
    ChangeMap("piwnica.map","PlayerStartArea_1", "", "");    
}
03-25-2012, 01:24 PM
Find


Messages In This Thread
Changing map after being killed by monster - by Sprytny - 03-25-2012, 01:24 PM



Users browsing this thread: 1 Guest(s)