OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: BHD Mod on 15 May 2005, 08:13:51

Title: adding a sound when hit
Post by: BHD Mod on 15 May 2005, 08:13:51
is there a way i could make it so that everytime a person is hit they play a sound (a scream)? i know it has something to do with "addeventhandler" but i have no idea how to use it.
Title: Re:adding a sound when hit
Post by: THobson on 15 May 2005, 09:48:23

Go to the Editors Dept - Online References - Scripting Topics - Event Handlers.

Also look at
http://www.ofpec.com/editors/resource_view.php?id=543 (http://www.ofpec.com/editors/resource_view.php?id=543)

Title: Re:adding a sound when hit
Post by: 456820 on 15 May 2005, 10:46:47
i thought ofp soldiers scream already when hit well most of the time they do
Title: Re:adding a sound when hit
Post by: Roni on 18 May 2005, 23:45:37
They do, but they're pretty lame.  I finally learned EH's a few months ago after years of playing OFP and have hade heaps of fun lately adding "hit" and "fired" EHs' to all and sundry.

I now have custom sounds, custom blood, custom gun smoke, custom rocket trails etc.  Needless to say I can't make a playable mission with all this laggy smoke and custom sound effects clogging up the CPU !   ;D   :P



Rags