Jump to content
LowFlyZone

Allow player to use medikit and toolkit

Recommended Posts

Is there any way to script or modify the configs via mission to allow the player to use medikits and/or toolkits to heal and repair vehicles? As if you're an engineer and medic?

I've never seen a solution to this, and I'm hoping not to have to script actions for it.

Share this post


Link to post
Share on other sites

There is a secret way, though not many people know it.

There is a class 'B_soldier_universal_F' which can do as you say. It is not placeable via the Editor, so you'll have to go into the mission.sqm and change the soldiers from 'B_soldier_F' to B_soldier_universal_F. Also has the EAST and RESISTANCE counterparts.

  • Like 1

Share this post


Link to post
Share on other sites
There is a secret way, though not many people know it.

There is a class 'B_soldier_universal_F' which can do as you say. It is not placeable via the Editor, so you'll have to go into the mission.sqm and change the soldiers from 'B_soldier_F' to B_soldier_universal_F. Also has the EAST and RESISTANCE counterparts.

Thank you, I will check it out...

Share this post


Link to post
Share on other sites

There is a secret way, though not many people know it.

There is a class 'B_soldier_universal_F' which can do as you say. It is not placeable via the Editor, so you'll have to go into the mission.sqm and change the soldiers from 'B_soldier_F' to B_soldier_universal_F. Also has the EAST and RESISTANCE counterparts.

Thank you so much, this really helped me out.

Share this post


Link to post
Share on other sites

initPlayerLocal.sqf

player setUnitTrait ["Medic",true];
player setUnitTrait ["Engineer",true];

More info on the wiki

  • Like 5

Share this post


Link to post
Share on other sites

initPlayerLocal.sqf

player setUnitTrait ["Medic",true];
player setUnitTrait ["Engineer",true];

More info on the wiki

 

From now on this is my accepted answer :)

Share this post


Link to post
Share on other sites

initPlayerLocal.sqf

player setUnitTrait ["Medic",true];
player setUnitTrait ["Engineer",true];

More info on the wiki

Cant thank you enough R3vo :)

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×