Welcome to the Iron Front Fan Forums!
Sign up Latest Topics
 
 
 


Reply
  Author   Comment  
Joarius

Avatar / Picture

IFR Team
Registered:
Posts: 290
Reply with quote  #1 
I would like to "transform" a SdKfz 251 or a M3 Halftrack as medical vehicles, as the trucks especially made for this in the game and yet present.
Someone has found This, but the characters are not treated and stay wounded. There is an animation as there would be a treating, but no else.

Someone would have an idea ?

__________________
0
[EVO] Dan

Sergeant
Registered:
Posts: 85
Reply with quote  #2 
you could have an addAction added to it, so that when you are near the vehicle, you have the option to heal and it would then play the animation if you want, and then set the health to 1.
0
Joarius

Avatar / Picture

IFR Team
Registered:
Posts: 290
Reply with quote  #3 
Thanks for the answer; [EVO] Dan.
As i'm a total newbie in scripting, what is(are) the command(s) to insert in addaction in order to obtain what you propose ?

__________________
0
Santa Six

Avatar / Picture

Colonel
Registered:
Posts: 360
Reply with quote  #4 
The Simple way.

Put in vehicle init.
this addaction ["Heal at M3 Half-Track","heal.sqf"];


Copy script and save as heal.sqf and place in your mission folder.
 
player playMove "AinvPknlMstpSnonWnonDnon_medic_2";
player setDamage 0;
 

I couldn't get the heal Icon to appear. Can some one help me make this work? I found ui_action_heal_ca.paa but I don't now how to call it.
"<image='\IF\AddOns\lib_gui\data\ui_action_heal_ca.paa' size='1.8' shadow=0 />"
0
Joarius

Avatar / Picture

IFR Team
Registered:
Posts: 290
Reply with quote  #5 
Prima ! It works fine !
Thank's a lot.

__________________
0
Previous Topic | Next Topic
Print
Reply

Quick Navigation:

Easily create a Forum Website with Website Toolbox.