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
How to script Fainting?
naseem142 Offline
Member

Posts: 153
Threads: 19
Joined: Oct 2012
Reputation: 0
#3
RE: How to script Fainting?

For a newbie i would i use this simple script :p
When the player collides with the "Faint" Script area he will get a 5 sanity damage ( you can edit it as much as you want til 100 )



void OnStart()
{
AddEntityCollideCallback("Player", "Faint", "Faint", true, 1);
}

void Faint(string &in asParent, string &in asChild, int alState)
{
GiveSanityDamage(5.0f, true);
}

I help people when i'm bored :U


Typing Speed: 74 Words per minute
(This post was last modified: 11-02-2012, 09:04 AM by naseem142.)
11-02-2012, 08:51 AM
Website Find


Messages In This Thread
How to script Fainting? - by taylor122002 - 11-02-2012, 03:56 AM
RE: How to script Fainting? - by naseem142 - 11-02-2012, 08:51 AM



Users browsing this thread: 1 Guest(s)