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


Thread Rating:
  • 2 Vote(s) - 4.5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Scary creaking Script Tutorial
amusei Offline
Junior Member

Posts: 23
Threads: 8
Joined: Aug 2012
Reputation: 2
#7
RE: Scary creaking Script Tutorial

(09-20-2012, 07:19 PM)go.go Wrote: I cant get the delay thing to work. I want the creaking sounds to come at a random time between 30 and 60 seconds, so i changed:

float fCreaking = RandFloat(1.5f, 8);

To:

float fCreaking = RandFloat(30f, 60);

But the sounds still come really frequently. Any idea why?
Sorry I couldn't answer sooner but I was absent. Try changing the second timer(the one in the void CreakingTimer(string &in asTimer))
from
AddTimer("creak", 1 +fCreaking, "CreakingTimer");
to
AddTimer("creak1", 1 +fCreaking, "CreakingTimer");
The problem is probably because both timers have the same names. I'm not sure though because I don't seem to have that problem and changing the "float fCreaking = (1.5f, 8);" also changes the time between creaks and my timers have same names. Hope this work for you Smile
09-29-2012, 03:41 PM
Find


Messages In This Thread
Scary creaking Script Tutorial - by amusei - 09-04-2012, 12:00 PM
RE: Scary creaking Script Tutorial - by Robby - 09-04-2012, 12:02 PM
RE: Scary creaking Script Tutorial - by amusei - 09-04-2012, 12:04 PM
RE: Scary creaking Script Tutorial - by Hardarm - 09-06-2012, 10:06 PM
RE: Scary creaking Script Tutorial - by go.go - 09-20-2012, 07:19 PM
RE: Scary creaking Script Tutorial - by amusei - 09-29-2012, 03:41 PM
RE: Scary creaking Script Tutorial - by Ongka - 09-20-2012, 09:13 PM



Users browsing this thread: 1 Guest(s)