![]() |
Script help! - 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 - Development (https://www.frictionalgames.com/forum/forum-38.html) +---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html) +---- Thread: Script help! (/thread-16018.html) Pages:
1
2
|
RE: Script help! - Clear - 06-12-2012 (06-12-2012, 04:11 PM)CorinthianMerchant Wrote: Please not another pewdiepie map. Why not something more serious and yummy like an atmospheric map, I'm sure that will be more appreciated!Haha =D I was giving an example as a refference for Pewdiepie, my actual idea was to make it like SCP-173 or Weeping Angles, if you know what i mean RE: Script help! - Adny - 06-12-2012 The script you're looking for is: PlaySoundAtEntity(string& asSoundName, string& asSoundFile, string& asEntity, float afFadeTime, bool abSaveSound); asSoundName you can leave blank, it is used for later callbacks which I doubt you'll need asSoundFile will be the name of the sound+.snt (for example, "mysound.snt") asEntity will be the entity you play the sound at, which would be the statue. afFadeTime is the time until the sound fades, but since the brick sound it so short, you can set it to 0.0f abSaveSound tbh idk what it does, just mark it false xD so altogether: PlaySoundAtEntity("", "mysound.snt", "Statue_1", 0.0f, false); May I also offer a simpler alternative, "PlayGuiSound". PlayGuiSound plays the sound only at the player, but you can modify the volume; the Function is: PlayGuiSound("mysound.snt", 1.0f); mysound.snt = the sound to play 1.0f = the volume. PlayGuiSound can make it seem like the statue is right behind/on the player, making it a bit more stressful for them ![]() RE: Script help! - CorinthianMerchant - 06-12-2012 (06-12-2012, 05:00 PM)Clear Wrote:Okay.(06-12-2012, 04:11 PM)CorinthianMerchant Wrote: Please not another pewdiepie map. Why not something more serious and yummy like an atmospheric map, I'm sure that will be more appreciated!Haha =D ![]() |