OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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.
-
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)
-
i thought ofp soldiers scream already when hit well most of the time they do
-
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