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 sounds
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#6
RE: How to script sounds

(08-18-2011, 04:02 PM)zeravia Wrote: i'm not sure exactly, but i think it's similiar to what i have for one of my own scares... here...does this help at all? i'm just getting started with my own scripting, but i like helping people...especially since i was helped. XD

void Scare(string &in asParent, string &in asChild, int alState)
{
StartPlayerLookAt("armour_nice_complete_7", 7.0f, 7.0f, "");
SetEntityActive("Scareskull", true);
AddPropImpulse("armour_nice_complete_7", 2, 1, 0, "World");
PlayGuiSound("react_scare.snt", 1.2f);
AddTimer("S", 0.4, "S");

You should first try to get a good ground with scripting before helping them, like in this case. By the way, you can use [cod*e] and [/cod*e] between your script (without asterisk (*)) as so it is easier to indicate when it starts and ends.

08-18-2011, 04:07 PM
Find


Messages In This Thread
How to script sounds - by Khan - 08-18-2011, 02:49 PM
RE: How to script sounds - by zeravia - 08-18-2011, 03:16 PM
RE: How to script sounds - by Khan - 08-18-2011, 03:43 PM
RE: How to script sounds - by zeravia - 08-18-2011, 04:02 PM
RE: How to script sounds - by Kyle - 08-18-2011, 04:07 PM
RE: How to script sounds - by Kyle - 08-18-2011, 04:01 PM



Users browsing this thread: 1 Guest(s)