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
Script Help Assist me while I learn to script
Radical Batz Offline
Posting Freak

Posts: 953
Threads: 145
Joined: Dec 2013
Reputation: 25
#9
RE: Assist me while I learn to script

(01-29-2016, 08:29 PM)Toggle Wrote: Okay, next question is.. Do I need to use timers to play a sound at regular intervals UNTIL the player goes over to interact with the script area? Or is there a different way to accomplish that? Not a loop, though. What I want is for the sound to play every 30 seconds or so, until the player gets in the proper place, at which time the sound should stop.

You can use an if statement but if you want to make it easier. You can like just when the player collides with an area to where you want him to go then you can use a StopSound{"name of the sound", 1); to stop the sound that's playing.

For that you need an addentitycollidecallback in void OnStart

(This post was last modified: 01-29-2016, 09:01 PM by Radical Batz.)
01-29-2016, 09:00 PM
Find


Messages In This Thread
Assist me while I learn to script - by Toggle - 01-26-2016, 10:59 PM
RE: Level Editor Crash - by Mudbill - 01-27-2016, 01:38 AM
RE: Level Editor Crash - by Toggle - 01-27-2016, 03:01 AM
RE: No Matching Signatures - by Toggle - 01-29-2016, 02:56 AM
RE: No Matching Signatures - by Mudbill - 01-29-2016, 08:25 AM
RE: No Matching Signatures - by Spelos - 01-29-2016, 07:12 PM
RE: No Matching Signatures - by Toggle - 01-29-2016, 07:15 PM
RE: Assist me while I learn to script - by Toggle - 01-29-2016, 08:29 PM
RE: Assist me while I learn to script - by Radical Batz - 01-29-2016, 09:00 PM
RE: Assist me while I learn to script - by Spelos - 01-29-2016, 10:45 PM



Users browsing this thread: 1 Guest(s)