Facebook Twitter YouTube Frictional Games | Forum | Newsletter | Dev Blog | Dev Wiki | Support | Gametee


Post Reply 
 
Thread Rating:
  • 4 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Anyone need help?
Author Message
Simpanra Offline
Senior Member

Posts: 314
Joined: Mar 2011
Reputation: 0
Post: #25
RE: Anyone need help?

(05-08-2011 07:53 PM)Dominic0904 Wrote:  Quick question since you're offering. When you create some random event that lower's the player's sanity.
Say for mine I want the player to walk into a room and once he's at the centre he hears a loud roar and get's shaken up.
Now my question is, when his sanity is lowered ((because of the void StartRandomInsanityEvent(); ))
does the player give off scared reaction? Like does he naturally gasp or do I have to add the sound file into that script as well?

Tell me if it sounds confusing, think I may have confused myself Tongue

i know this isnt my thread to answer on, but i might as well =P

Ok, first of all i would use a different function called GiveSanityDamage =) look it up on the wiki to find where to put the inputs, this function allows you to choose (out of 100) how much sanity damage the player suffers,

Then in the same void function, place a PlaySoundAtEntiy function =)

Then set the sound that plays as "react_scare1" if i remember correctly =)

So this is what your script will look like;
{
AddEntityCollideCallback("Player", "MiddleOfRoom", "LoudRoarEvent")
}
void LoudRoarEvent( Parent, Child, State)
{
GiveSanityDamage( 10,)
PlaySoundAtEntity("react_scare1", "Player")
}



NOTE; this script wont work in game as i haven't put any variables in (apart from the sanity damage, i set as ten cos thats my favourite), you will need to find the functions i used on the wiki and place them where i have put mine and put in your chosen variables =)

Hope this helps =)

Edd,
05-08-2011 07:58 PM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
Anyone need help? - Kyle - 05-05-2011, 11:21 PM
RE: Anyone need help? - X4anco - 05-06-2011, 05:56 PM
RE: Anyone need help? - Khyrpa - 05-06-2011, 06:25 PM
RE: Anyone need help? - Kyle - 05-06-2011, 07:58 PM
RE: Anyone need help? - dragonlordsd - 05-06-2011, 08:23 PM
RE: Anyone need help? - MrBigzy - 05-06-2011, 10:23 PM
RE: Anyone need help? - Kyle - 05-06-2011, 11:24 PM
RE: Anyone need help? - MrBigzy - 05-07-2011, 12:27 AM
RE: Anyone need help? - Kyle - 05-07-2011, 12:40 AM
RE: Anyone need help? - MrBigzy - 05-07-2011, 02:39 AM
RE: Anyone need help? - Kyle - 05-07-2011, 02:47 AM
RE: Anyone need help? - MrBigzy - 05-07-2011, 02:59 AM
RE: Anyone need help? - Exostalker - 05-07-2011, 09:46 AM
RE: Anyone need help? - Kyle - 05-07-2011, 12:38 PM
RE: Anyone need help? - Simpanra - 05-07-2011, 01:28 PM
RE: Anyone need help? - Kyle - 05-07-2011, 01:33 PM
RE: Anyone need help? - Simpanra - 05-07-2011, 01:52 PM
RE: Anyone need help? - Exostalker - 05-07-2011, 06:07 PM
RE: Anyone need help? - Kyle - 05-07-2011, 07:31 PM
RE: Anyone need help? - Exostalker - 05-07-2011, 07:41 PM
RE: Anyone need help? - Kyle - 05-07-2011, 07:43 PM
RE: Anyone need help? - Exostalker - 05-07-2011, 07:46 PM
RE: Anyone need help? - Kyle - 05-07-2011, 07:54 PM
RE: Anyone need help? - Dominic0904 - 05-08-2011, 07:53 PM
RE: Anyone need help? - Simpanra - 05-08-2011 07:58 PM
RE: Anyone need help? - Dominic0904 - 05-08-2011, 08:55 PM
RE: Anyone need help? - RawkBandMan - 05-08-2011, 10:40 PM
RE: Anyone need help? - Kyle - 05-08-2011, 10:46 PM
RE: Anyone need help? - RawkBandMan - 05-08-2011, 10:57 PM
RE: Anyone need help? - Simpanra - 05-08-2011, 11:18 PM
RE: Anyone need help? - Dominic0904 - 05-08-2011, 11:46 PM
RE: Anyone need help? - Kyle - 05-08-2011, 10:59 PM
RE: Anyone need help? - RawkBandMan - 05-08-2011, 11:11 PM
RE: Anyone need help? - Ge15t - 05-08-2011, 11:06 PM
RE: Anyone need help? - Kyle - 05-08-2011, 11:51 PM
RE: Anyone need help? - Dominic0904 - 05-08-2011, 11:59 PM
RE: Anyone need help? - Kyle - 05-09-2011, 12:04 AM
RE: Anyone need help? - Ge15t - 05-09-2011, 12:35 AM
RE: Anyone need help? - Kyle - 05-09-2011, 12:51 AM
RE: Anyone need help? - Dominic0904 - 05-09-2011, 12:12 AM
RE: Anyone need help? - Kyle - 05-09-2011, 12:14 AM
RE: Anyone need help? - Ge15t - 05-09-2011, 02:26 AM
RE: Anyone need help? - Kyle - 05-09-2011, 02:37 AM
RE: Anyone need help? - Ge15t - 05-09-2011, 02:44 AM
RE: Anyone need help? - Kyle - 05-09-2011, 03:05 AM
RE: Anyone need help? - masken94 - 05-09-2011, 09:57 AM
RE: Anyone need help? - Kyle - 05-09-2011, 10:52 AM
RE: Anyone need help? - Dominic0904 - 05-09-2011, 11:01 AM
RE: Anyone need help? - Kyle - 05-09-2011, 11:12 AM
RE: Anyone need help? - Dominic0904 - 05-09-2011, 11:46 AM
RE: Anyone need help? - RawkBandMan - 05-09-2011, 05:11 PM
RE: Anyone need help? - masken94 - 05-09-2011, 06:41 PM
RE: Anyone need help? - Kyle - 05-09-2011, 08:21 PM
RE: Anyone need help? - Ge15t - 05-09-2011, 10:01 PM
RE: Anyone need help? - Kyle - 05-09-2011, 10:12 PM
RE: Anyone need help? - Ge15t - 05-10-2011, 12:08 AM
RE: Anyone need help? - Kyle - 05-10-2011, 12:30 AM
RE: Anyone need help? - Ge15t - 05-10-2011, 01:18 AM
RE: Anyone need help? - Kyle - 05-10-2011, 01:26 AM
RE: Anyone need help? - cook - 05-10-2011, 03:19 AM
RE: Anyone need help? - Kyle - 05-10-2011, 03:36 AM
RE: Anyone need help? - Ge15t - 05-10-2011, 05:31 AM
RE: Anyone need help? - cook - 05-10-2011, 08:07 AM
RE: Anyone need help? - Anxt - 05-10-2011, 04:09 AM
RE: Anyone need help? - Kyle - 05-10-2011, 10:43 AM
RE: Anyone need help? - Dominic0904 - 05-10-2011, 11:31 AM
RE: Anyone need help? - csm - 05-10-2011, 06:25 AM
RE: Anyone need help? - Kyle - 05-10-2011, 12:00 PM
RE: Anyone need help? - Dominic0904 - 05-10-2011, 12:03 PM
RE: Anyone need help? - Kyle - 05-10-2011, 12:14 PM
RE: Anyone need help? - cook - 05-10-2011, 12:16 PM
RE: Anyone need help? - Dominic0904 - 05-10-2011, 12:25 PM
RE: Anyone need help? - Anxt - 05-10-2011, 03:36 PM
RE: Anyone need help? - Khyrpa - 05-10-2011, 03:42 PM
RE: Anyone need help? - Anxt - 05-10-2011, 03:44 PM
RE: Anyone need help? - Kyle - 05-10-2011, 05:23 PM
RE: Anyone need help? - Anxt - 05-10-2011, 06:18 PM
RE: Anyone need help? - Kyle - 05-10-2011, 06:51 PM
RE: Anyone need help? - Anxt - 05-10-2011, 07:02 PM
RE: Anyone need help? - Kyle - 05-10-2011, 07:12 PM
RE: Anyone need help? - Anxt - 05-10-2011, 07:16 PM
RE: Anyone need help? - Kyle - 05-10-2011, 07:19 PM
RE: Anyone need help? - Dominic0904 - 05-10-2011, 07:56 PM
RE: Anyone need help? - Ge15t - 05-11-2011, 10:28 PM
RE: Anyone need help? - Kyle - 05-11-2011, 10:36 PM
RE: Anyone need help? - Simpanra - 05-11-2011, 10:42 PM
RE: Anyone need help? - Ge15t - 05-11-2011, 10:48 PM
RE: Anyone need help? - Simpanra - 05-11-2011, 10:51 PM
RE: Anyone need help? - Kyle - 05-11-2011, 10:53 PM
RE: Anyone need help? - Ge15t - 05-11-2011, 10:55 PM
RE: Anyone need help? - Simpanra - 05-11-2011, 11:01 PM
RE: Anyone need help? - Kyle - 05-11-2011, 10:57 PM
RE: Anyone need help? - Ge15t - 05-12-2011, 09:46 AM
RE: Anyone need help? - Kyle - 05-12-2011, 10:55 AM
RE: Anyone need help? - Ge15t - 05-12-2011, 11:16 AM
RE: Anyone need help? - Kyle - 05-12-2011, 11:21 AM
RE: Anyone need help? - Dominic0904 - 05-12-2011, 01:10 PM
RE: Anyone need help? - Kyle - 05-12-2011, 08:00 PM
RE: Anyone need help? - Ge15t - 05-13-2011, 12:21 AM
RE: Anyone need help? - Acies - 05-13-2011, 12:35 AM
RE: Anyone need help? - Ge15t - 05-13-2011, 03:50 AM
RE: Anyone need help? - Selyp - 05-13-2011, 05:21 AM
RE: Anyone need help? - Kyle - 05-13-2011, 10:55 AM
RE: Anyone need help? - Greven - 05-14-2011, 08:30 AM
RE: Anyone need help? - Kyle - 05-14-2011, 01:39 PM
RE: Anyone need help? - Greven - 05-14-2011, 06:35 PM
RE: Anyone need help? - Greven - 05-14-2011, 02:41 PM
RE: Anyone need help? - Kyle - 05-14-2011, 03:46 PM
RE: Anyone need help? - Simpanra - 05-14-2011, 05:14 PM
RE: Anyone need help? - Roenlond - 05-14-2011, 05:28 PM
RE: Anyone need help? - Kyle - 05-14-2011, 06:45 PM
RE: Anyone need help? - Simpanra - 05-14-2011, 06:47 PM
RE: Anyone need help? - Kyle - 05-14-2011, 06:53 PM
RE: Anyone need help? - Rownbear - 05-15-2011, 12:03 AM
RE: Anyone need help? - nemesis567 - 05-15-2011, 12:12 AM
RE: Anyone need help? - Kyle - 05-15-2011, 12:26 AM
RE: Anyone need help? - nemesis567 - 05-15-2011, 12:41 AM
RE: Anyone need help? - WatzUpzPeepz - 05-15-2011, 01:09 AM
RE: Anyone need help? - WatzUpzPeepz - 05-15-2011, 01:02 AM
RE: Anyone need help? - nemesis567 - 05-15-2011, 01:03 AM
RE: Anyone need help? - nemesis567 - 05-15-2011, 01:19 AM
RE: Anyone need help? - nemesis567 - 05-15-2011, 12:55 PM
RE: Anyone need help? - Modular100 - 05-15-2011, 01:18 PM
RE: Anyone need help? - nemesis567 - 05-15-2011, 03:28 PM
RE: Anyone need help? - Dominic0904 - 05-15-2011, 03:45 PM
RE: Anyone need help? - nemesis567 - 05-15-2011, 04:12 PM
RE: Anyone need help? - Kyle - 05-15-2011, 04:28 PM
RE: Anyone need help? - MrBigzy - 05-15-2011, 04:34 PM
RE: Anyone need help? - nemesis567 - 05-15-2011, 05:12 PM
RE: Anyone need help? - Dominic0904 - 05-15-2011, 05:45 PM
RE: Anyone need help? - Roenlond - 05-15-2011, 05:47 PM
RE: Anyone need help? - nemesis567 - 05-15-2011, 06:01 PM
RE: Anyone need help? - Kyle - 05-15-2011, 05:49 PM
RE: Anyone need help? - Roenlond - 05-15-2011, 05:52 PM
RE: Anyone need help? - Dominic0904 - 05-15-2011, 05:50 PM
RE: Anyone need help? - Kyle - 05-15-2011, 05:51 PM
RE: Anyone need help? - Dominic0904 - 05-15-2011, 06:00 PM
RE: Anyone need help? - X4anco - 05-15-2011, 07:12 PM
RE: Anyone need help? - Kyle - 05-15-2011, 07:34 PM
RE: Anyone need help? - nemesis567 - 05-15-2011, 07:34 PM
RE: Anyone need help? - Rownbear - 05-16-2011, 12:04 PM
RE: Anyone need help? - Kyle - 05-16-2011, 12:17 PM
RE: Anyone need help? - Rownbear - 05-16-2011, 01:12 PM
RE: Anyone need help? - DannieWest - 05-16-2011, 01:16 PM
RE: Anyone need help? - Ge15t - 05-17-2011, 08:22 AM
RE: Anyone need help? - Rownbear - 05-17-2011, 11:02 AM
RE: Anyone need help? - Kyle - 05-17-2011, 11:27 AM
RE: Anyone need help? - Rownbear - 05-17-2011, 12:08 PM
RE: Anyone need help? - Kyle - 05-17-2011, 09:07 PM
RE: Anyone need help? - Rownbear - 05-17-2011, 10:50 PM
RE: Anyone need help? - nemesis567 - 05-17-2011, 11:05 PM
RE: Anyone need help? - Kyle - 05-17-2011, 11:23 PM
RE: Anyone need help? - nemesis567 - 05-17-2011, 11:45 PM
RE: Anyone need help? - Kyle - 05-18-2011, 12:30 AM
RE: Anyone need help? - nemesis567 - 05-18-2011, 02:42 PM
RE: Anyone need help? - Sennep - 05-18-2011, 07:00 PM
RE: Anyone need help? - Kyle - 05-18-2011, 07:58 PM
RE: Anyone need help? - Sennep - 05-19-2011, 09:07 PM
RE: Anyone need help? - Kyle - 05-19-2011, 09:11 PM
RE: Anyone need help? - Wonderbread - 05-18-2011, 09:19 PM
RE: Anyone need help? - Kyle - 05-18-2011, 09:48 PM
RE: Anyone need help? - Wonderbread - 05-18-2011, 10:14 PM
RE: Anyone need help? - Kyle - 05-18-2011, 11:58 PM
RE: Anyone need help? - Wonderbread - 05-19-2011, 01:43 AM
RE: Anyone need help? - Kyle - 05-19-2011, 02:29 AM
RE: Anyone need help? - Wonderbread - 05-20-2011, 05:47 AM
RE: Anyone need help? - laser50 - 05-18-2011, 10:26 PM
RE: Anyone need help? - Sennep - 05-19-2011, 09:44 PM
RE: Anyone need help? - DannieWest - 05-19-2011, 10:26 PM
RE: Anyone need help? - Kyle - 05-19-2011, 10:47 PM
RE: Anyone need help? - DannieWest - 05-19-2011, 11:10 PM
RE: Anyone need help? - Kyle - 05-19-2011, 11:17 PM
RE: Anyone need help? - DannieWest - 05-20-2011, 12:51 AM
RE: Anyone need help? - Streetboat - 05-20-2011, 06:06 AM
RE: Anyone need help? - Kyle - 05-20-2011, 10:53 AM
RE: Anyone need help? - Streetboat - 05-20-2011, 07:01 PM
RE: Anyone need help? - Kyle - 05-20-2011, 07:56 PM
RE: Anyone need help? - Wonderbread - 05-20-2011, 09:04 PM
RE: Anyone need help? - Streetboat - 05-20-2011, 08:01 PM
RE: Anyone need help? - Kyle - 05-20-2011, 09:13 PM
RE: Anyone need help? - RawkBandMan - 05-21-2011, 03:36 PM
RE: Anyone need help? - Exostalker - 05-21-2011, 04:50 PM
RE: Anyone need help? - Modular100 - 05-22-2011, 04:30 PM
RE: Anyone need help? - Kyle - 05-22-2011, 05:05 PM
RE: Anyone need help? - RawkBandMan - 05-23-2011, 03:05 PM
RE: Anyone need help? - Modular100 - 05-22-2011, 05:38 PM
RE: Anyone need help? - Kyle - 05-22-2011, 05:41 PM
RE: Anyone need help? - xtron - 05-22-2011, 06:00 PM
RE: Anyone need help? - Kyle - 05-22-2011, 06:41 PM
RE: Anyone need help? - xtron - 05-22-2011, 07:26 PM
RE: Anyone need help? - Kyle - 05-22-2011, 07:33 PM
RE: Anyone need help? - xtron - 05-22-2011, 07:34 PM
RE: Anyone need help? - Kyle - 05-22-2011, 07:37 PM
RE: Anyone need help? - xtron - 05-22-2011, 07:39 PM
RE: Anyone need help? - Kyle - 05-22-2011, 07:44 PM
RE: Anyone need help? - xtron - 05-22-2011, 07:47 PM
RE: Anyone need help? - Kyle - 05-22-2011, 07:54 PM
RE: Anyone need help? - xtron - 05-22-2011, 07:54 PM
RE: Anyone need help? - Kyle - 05-22-2011, 08:03 PM
RE: Anyone need help? - xtron - 05-22-2011, 08:07 PM
RE: Anyone need help? - Kyle - 05-22-2011, 08:10 PM
RE: Anyone need help? - xtron - 05-22-2011, 08:12 PM
RE: Anyone need help? - Kyle - 05-22-2011, 08:47 PM
RE: Anyone need help? - xtron - 05-22-2011, 08:49 PM
RE: Anyone need help? - Kyle - 05-22-2011, 09:16 PM
RE: Anyone need help? - xtron - 05-23-2011, 02:42 PM
RE: Anyone need help? - xtron - 05-23-2011, 05:41 PM
RE: Anyone need help? - WatzUpzPeepz - 05-23-2011, 07:45 PM
RE: Anyone need help? - RawkBandMan - 05-23-2011, 07:48 PM
RE: Anyone need help? - Simpanra - 05-23-2011, 08:08 PM
RE: Anyone need help? - Kyle - 05-23-2011, 09:14 PM
RE: Anyone need help? - xtron - 05-23-2011, 08:32 PM
RE: Anyone need help? - Simpanra - 05-23-2011, 09:45 PM
RE: Anyone need help? - xtron - 05-24-2011, 06:39 AM
RE: Anyone need help? - havis1337 - 05-24-2011, 08:50 PM
RE: Anyone need help? - DannieWest - 05-24-2011, 08:58 PM
RE: Anyone need help? - Mooserider - 05-26-2011, 08:26 AM
RE: Anyone need help? - Kyle - 05-26-2011, 11:00 AM
RE: Anyone need help? - Mooserider - 05-26-2011, 11:38 AM
RE: Anyone need help? - Kyle - 05-28-2011, 01:41 PM



User(s) browsing this thread: 1 Guest(s)