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


Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Another script
Author Message
LoneWolf Offline
Senior Member

Posts: 308
Joined: Sep 2010
Reputation: 0
Post: #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 all posts by this user Quote this message in a reply
anzki Offline
Member

Posts: 88
Joined: Apr 2010
Reputation: 1
Post: #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 all posts by this user Quote this message in a reply
LoneWolf Offline
Senior Member

Posts: 308
Joined: Sep 2010
Reputation: 0
Post: #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 all posts by this user Quote this message in a reply
Kyle Offline
Posting Freak

Posts: 911
Joined: Sep 2010
Reputation: 7
Post: #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 all posts by this user Quote this message in a reply
Post Reply 




User(s) browsing this thread: 1 Guest(s)