Frictional Games Forum (read-only)

Full Version: Creaking footsteps effect
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I See this alot in custom stories, you walk into a room and you see dust falling from the ceiling and foot steps start, how do i add this effect?
You need to create a few area script on the roof. After that, you need to script the script areas by using "AddParticleSystemAtEntity" script (if I'm not mistaken). If you want to add some sound, just use "PlaySoundAtEntity" script (again, if I'm not mistaken).

You need to look at this for the scripts : http://wiki.frictionalgames.com/hpl2/amn..._functions
Just create a looping timer with random times. Like this.

AddTimer("soundtimer", RandFloat(8.0f, 14.0f), "TimerSounds");

The sound will play randomly between 8 and 14 seconds.