OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: punisher on 25 Sep 2007, 19:12:23
-
hi
Me and a friend are making a mission when we re-enact some of the boss fights from metal gear etc. Not surprisingly in ofp they are over pretty fast. We had used some scripts on ai before to boost health but they dont seem to work on players really. Any sugestions?
attempt 1
_unit = _this select 0
_Damage = _this select 2
_unit setdammage 0
tx_damage = tx_damage - _damage
? (tx_damage <=0):_unit removealleventhandlers "hit"
attempt 2
_a=_this select 2
_russian=_this select 0
?not(alive _russian):goto "end"
~0.01
_russian setdammage 0
if (_a>0.5) then {_russian say "rusroar1"} else {_russian say "rusroar2"}
#end
exit
-
What you could do is try and get a script that regenerate's the soldier's health when he's been shot - but at the same time, manage to make it look like he's got gun wounds on him - dunno.
A search led me here:
http://www.ofpec.com/forum/index.php?action=search2
Does that help?
Chris :)
-
a search led you to the search button? lol
-
LOL, oops.
Does this (http://www.ofpec.com/forum/index.php?action=search2;params=YWR2YW5jZWR8J3wxfCJ8YnJkfCd8Myw0LDU3LDgwLDg4LDg5LDgzLDYsNywyNyw2MCw4Miw4NSwyMywyMiw4MSw4NCwxMywxNHwifHNob3dfY29tcGxldGV8J3x8InxzdWJqZWN0X29ubHl8J3x8Inxzb3J0X2RpcnwnfGRlc2N8Inxzb3J0fCd8cmVsZXZhbmNlfCJ8c2VhcmNofCd8aGVhbHRo) work?
If not, check these:
http://www.ofpec.com/forum/index.php?topic=26741.0
http://www.ofpec.com/forum/index.php?topic=20882.0
Chris :)