OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: jaksa on 19 Jun 2005, 16:47:00

Title: rearm machinegunner
Post by: jaksa on 19 Jun 2005, 16:47:00
When machineguner (or anybody else) running out of ammo, he is informing about that. is it possible, that ammo bearer will come close to gunner, and rearm him?
different example: one got hit, so the medic should go, and heal him. Is it possible to do that without loop (using resourses), the script could be run only when direct accident will happen?
Title: Re:rearm machinegunner
Post by: greg147 on 19 Jun 2005, 17:35:22
Ammo bearer script  ;)

http://www.ofpec.com/yabbse/index.php?board=27;action=display;threadid=20863
Title: Re:rearm machinegunner
Post by: Bluelikeu on 19 Jun 2005, 17:59:22
this addEventHandler[{hit}, {[_this select 0] exec "medicgotoheal.sqs"}]

you still need to have the script, but this will check it without the loop

this would be for the medic

also, you will need a medic script which i believe was made, but i'm not sure where
Title: Re:rearm machinegunner
Post by: Bluelikeu on 19 Jun 2005, 18:31:43
btw, i've updated some major erros in the script, so please download the file that is located on the last post.

I'll delete the one at the top and replace it with the latest one just in-case
Title: Re:rearm machinegunner
Post by: jaksa on 19 Jun 2005, 22:46:21
Thanks a lot!!!