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
Another script
LoneWolf Offline
Senior Member

Posts: 308
Threads: 43
Joined: Sep 2010
Reputation: 0
#1
Another script

When i walk into a script area i cant get slime/objects to appear and sound

Basically i walk into an area, sliem appears and the guardian sound will play, i also need the slime to appear like in amnesia.
11-06-2010, 07:37 PM
Find
anzki Offline
Member

Posts: 88
Threads: 6
Joined: Apr 2010
Reputation: 1
#2
RE: Another script

SetEntityActive("Name", boolTrueOrFalse);
"Name" is name of the entity(Duh!) and boolTrueOrFalse is true(appears) or false(disappears).

[Image: 2qnr5av.png]
11-06-2010, 07:46 PM
Find
LoneWolf Offline
Senior Member

Posts: 308
Threads: 43
Joined: Sep 2010
Reputation: 0
#3
RE: Another script

(11-06-2010, 07:46 PM)anzki Wrote:
SetEntityActive("Name", boolTrueOrFalse);
"Name" is name of the entity(Duh!) and boolTrueOrFalse is true(appears) or false(disappears).

Does this apply for sounds too?
11-06-2010, 08:55 PM
Find
Kyle Offline
Posting Freak

Posts: 911
Threads: 36
Joined: Sep 2010
Reputation: 7
#4
RE: Another script

(11-06-2010, 08:55 PM)LoneWolf Wrote:
(11-06-2010, 07:46 PM)anzki Wrote:
SetEntityActive("Name", boolTrueOrFalse);
"Name" is name of the entity(Duh!) and boolTrueOrFalse is true(appears) or false(disappears).

Does this apply for sounds too?

No. This is the one you use.
PlaySoundAtEntity(string& asSoundName, string& asSoundFile, string& asEntity, float afFadeTime, bool)

Please put this link under your favorites and look at it when you want a script function. Dodgy
http://wiki.frictionalgames.com/hpl2/amn..._functions

11-06-2010, 09:23 PM
Find




Users browsing this thread: 1 Guest(s)