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
Phonograph reset
Cyphermur9t Offline
Junior Member

Posts: 38
Threads: 17
Joined: Jan 2013
Reputation: 2
#1
Phonograph reset

In my CS I have a certain function where the Phonograph playing spawns a monster. Everything works fine there, however if the monster kills you I want the phonograph to reset back to its non-woundup state to be played again. (The monster has to spawn to break down a locked door). I thought the ResetProp("phonograph_1"); command would do the trick. The game detects no coding error yet this does not work. You cannot wind up the phonograph anymore. Is there a specific certain code for those props?

void Restart(string &in asParent, string &in asChild, int alState)
{
    CheckPoint ("checkpoint1", "PlayerStartArea_4", "Urstuff", "DeathCategory", "Deathtext1");
}

void Urstuff (string &in asName, int alCount)
{
    SetEntityConnectionStateChangeCallback("phonograph_1", "play_radio");

    ResetProp("phonograph_1");
}
09-30-2013, 09:47 PM
Find


Messages In This Thread
Phonograph reset - by Cyphermur9t - 09-30-2013, 09:47 PM
RE: Phonograph reset - by Cyphermur9t - 10-04-2013, 07:27 AM
RE: Phonograph reset - by Robby - 10-04-2013, 07:32 AM
RE: Phonograph reset - by Apjjm - 10-05-2013, 05:53 PM
RE: Phonograph reset - by Cyphermur9t - 10-06-2013, 09:58 PM



Users browsing this thread: 1 Guest(s)