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
"On dead" possible?
Khyrpa Offline
Senior Member

Posts: 638
Threads: 10
Joined: Apr 2011
Reputation: 24
#10
RE: "On dead" possible?

CheckPoint (string& asName, string& asStartPos, string& asCallback, string& asDeathHintCat, string& asDeathHintEntry);

When you put this inside the void OnStart()
The next time the player dies, that function is ran.
So to make things happen after the player dies you can use the asCallback.
example script:

void OnStart() //I just changed things to happen right when the map is ran
{CheckPoint ("", "NameOfSomeStartPos", "LockDoor", "", "");
}
void LockDoor(string &in asName, int alCount)
{
SetSwingDoorClosed("doorname", true, false);
SetSwingDoorLocked("doorname", true, false);
}


Copied my older post and changed some things. Is this what you were trying to accomplish?

09-25-2011, 05:52 PM
Find


Messages In This Thread
"On dead" possible? - by Brute - 09-25-2011, 07:37 AM
RE: "On dead" possible? - by palistov - 09-25-2011, 07:54 AM
RE: "On dead" possible? - by Brute - 09-25-2011, 09:20 AM
RE: "On dead" possible? - by Khyrpa - 09-25-2011, 01:03 PM
RE: "On dead" possible? - by Brute - 09-25-2011, 01:10 PM
RE: "On dead" possible? - by Brute - 09-25-2011, 03:28 PM
RE: "On dead" possible? - by RawkBandMan - 09-25-2011, 04:25 PM
RE: "On dead" possible? - by Tesseract - 09-25-2011, 04:34 PM
RE: "On dead" possible? - by Brute - 09-25-2011, 05:01 PM
RE: "On dead" possible? - by Khyrpa - 09-25-2011, 05:52 PM
RE: "On dead" possible? - by Brute - 09-25-2011, 06:33 PM
RE: "On dead" possible? - by Khyrpa - 09-25-2011, 06:58 PM
RE: "On dead" possible? - by Brute - 09-26-2011, 03:03 PM
Too Stupid for Scripting - by ResidentEddy - 04-21-2012, 03:15 AM



Users browsing this thread: 2 Guest(s)