Frictional Games Forum (read-only)
Another script - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods (https://www.frictionalgames.com/forum/forum-35.html)
+--- Thread: Another script (/thread-5340.html)



Another script - LoneWolf - 11-06-2010

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.


RE: Another script - anzki - 11-06-2010

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


RE: Another script - LoneWolf - 11-06-2010

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

Does this apply for sounds too?


RE: Another script - Kyle - 11-06-2010

(11-06-2010, 08:55 PM)LoneWolf Wrote:
(11-06-2010, 07:46 PM)anzki Wrote:
Code:
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/amnesia/script_functions