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");
}