taylor122002
Junior Member
Posts: 13
Threads: 10
Joined: Aug 2012
Reputation:
0
|
How to script Fainting?
Hello everyone!
I have a question for scripting. I'm making a custom story, and I set up the map so in one room, right when you open the door, you see a torso with some blood. And I want to make a script area so when you enter the script area, you collapse or faint for a moment.
I don't know how I would script this, could someone help me?
I don't know how to even begin the part of fainting when walking into a scripted area.
But, I tried anyways.
Here's what I did:
AddEntityCollideCallback("Player", "Faint", "Faint", true, 1);
void SetPlayerSanity(float afSanity);
{
SetPlayerSanity(0);
}
See, I don't even know where to begin. Lol
Originally, I had this before I set it to "void SetPlayerSanity...":
void Faint(string &in asParent, string &in asChild, int alState)
{
SetPlayerSanity(0);
}
and that did nothing.
I apologize if this didn't make sense.
(This post was last modified: 11-02-2012, 03:58 AM by taylor122002.)
|
|
11-02-2012, 03:56 AM |
|