The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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
A little understanding needed...
KingWolf Offline
Member

Posts: 135
Threads: 2
Joined: Sep 2012
Reputation: 7
#1
A little understanding needed...

So, I was helping Nemet Robert with his unofficial map, and I thought of something. Alas, I'm unable to script it.

I've tried contacting Robby, but he didn't respond. I'm guessing he's still sleeping, or forgot to turn his phone on.

Either way, I have a script zone that triggers a small event (Sanity Damage), and that also triggers a timer. Now, I want that timer to randomly choose 1 event from 4 different events once it depletes.

The events (all can be called by timers) are.

#1 = A sound that plays.
#2 = A sudden increase in the player's FOV. Later on, it returns to normal, followed by the same sound that #1 plays.
#3 = A short hearbeat, soon followed by a small decrease in the player's FOV, and the vision turns blood-red.
#4 = Triggers a particle effect, plays the same sound as #1, triggers the sanity damage again, then plays a scream sound.

Now I can script the events themselves, I just don't know how to script the timer to randomly choose 1 from these 4 events.

If somebody is successful, they will receive a +1 from both me and Robby too!

Helping "Nemet Robert " with his unofficial map.
(This post was last modified: 09-10-2012, 09:05 AM by KingWolf.)
09-10-2012, 08:03 AM
Find


Messages In This Thread
A little understanding needed... - by KingWolf - 09-10-2012, 08:03 AM
RE: A little understanding needed... - by Robby - 09-10-2012, 08:10 AM
RE: A little understanding needed... - by Adny - 09-10-2012, 08:11 AM
RE: A little understanding needed... - by Robby - 09-10-2012, 08:16 AM
RE: A little understanding needed... - by Robby - 09-10-2012, 08:25 AM
RE: A little understanding needed... - by Robby - 09-10-2012, 08:43 AM



Users browsing this thread: 1 Guest(s)