OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Se7eN on 02 Aug 2005, 09:04:13
-
When you run and breath and your hand is shakeing. ???
-
let me get this straight you want to make the player breathe hard and have shakey hands ? you didnt make it all that clear if thats what you want
is the units init field put this
this setdammage 0.3
that will make his hands shake to make him breath harder you must use a sound file i think wich must be defined in a description.ext
have a look at this (http://www.ofpec.com/editors/browse.php?browseon=&browsewhat=-1&category=-1&subcategory=-1_-1&numreturn=25&displayformat=0&ofpv=1&searchstring=Bloodmixer&searchwhat=4&searchlevel=0&searchopts=) the one at the bottom the sound tutorial one
-
I need that breathing, and handshakeing what you can see if you run long time ago.
The "setdammage" solution isnt good for me.
-
CanÂ't really help you with the breathing, but thereÂ's an alternative to the setDamage alternative 456820 suggested. Set your loon to:
unit setDamage -1
A negative damage level will not kill the unit, but his hands will start to shake like heÂ's a smoker in need of another Marlborough.
Breathing sounds are quite easy to implement as custom soundfiles (just breathe into your mike during the recording and trigger the sound with the say or playsound command).
-
Thx Guys!
:cheers: