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.
Code:
SetEntityActive("Name", boolTrueOrFalse);
"Name" is name of the entity(Duh!) and boolTrueOrFalse is true(appears) or false(disappears).
(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?
(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.
http://wiki.frictionalgames.com/hpl2/amn..._functions