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
2 Problems, (Playing a sound and Lightning (spotlight)) [BOTH SOLVED!!]
Dark88 Offline
Junior Member

Posts: 48
Threads: 6
Joined: Dec 2010
Reputation: 0
#10
RE: 2 Problems, (Playing a sound and Lightning (spotlight)) Light is SOLVED

(12-23-2010, 11:04 PM)bigfoot Wrote:
(12-23-2010, 10:57 PM)Dark88 Wrote:
(12-23-2010, 10:43 PM)bigfoot Wrote: "Let me try":
In the level editor at the door set the interact call back option to like : FirstLockedDoorScare.

then script:
void FirstLockedDoorScare(){
PlaySoundAtEntity(blabla)
}
?? hehe

That should work you just have to make sure the syntax of the function is correct in this instance
void FirstLockedDoorScare(string &in asEntity)
{
PlaySoundAtEntity(blabla)
}

also in that instance if you want for the string &in asEntity section of your PlaySoundAtEntity() you can just put asEntity without quotations

So I would just replace string &in asEntity (the one in the void FirstLockedDoorScare(this one)) with the door name? and then playsound at entity?

Thanks man Big Grin you deserve rep!

You're welcome, bro. I'm just glad I can help a fellow beginner.

Anyways, You replace the one in the PlaySoundAtEntity like this

PlaySoundAtEntity("", "break_wood_metal", asEntity, 0, false);
Edit: or this
PlaySoundAtEntity("", "break_wood_metal", "door", 0, false);

the function remains void FirstLockedDoorScare(string &in asEntity)
(This post was last modified: 12-23-2010, 11:11 PM by Dark88.)
12-23-2010, 11:08 PM
Find


Messages In This Thread
RE: 2 Problems, (Playing a sound and Lightning (spotlight)) Light is SOLVED - by Dark88 - 12-23-2010, 11:08 PM



Users browsing this thread: 11 Guest(s)