Jump to content
Sign in to follow this  
Hoot1988

allowing a Unit to act as a medic

Recommended Posts

how can i force one of my sniper units to be able to act as a medic in the game, my SF team are playing as snipers with custom weapon loadouts but i want them to be able to heal eachother if needed?

Share this post


Link to post
Share on other sites

Dunno, if it will work - but it might:

Create the unit as a medic, add the custom loadout and save. then alt+tab out and edit the actual mission file in notepad- scroll down to the unit in question and change vehicle from the medic model to the sniper model, this way he will look like a sniper but be a medic.

Like i say dunno if the actions (eg heal) are attached to model. Give it a try smile_o.gif

If you do this then change something to do with this unit in the editor it will change the model back to medic - so make the change just b4 u .pbo it. (obviously check if it works first)

Share this post


Link to post
Share on other sites

this may work as its a part that you add to the units config when creating a unit. i assume im only changing the model and not the actual unit?

Share this post


Link to post
Share on other sites

i think it just changes the model but i'm not sure if the unit will keep the medic capabilities cos i don't know if there tied to the model, im not 100% sure it will work in this case. give it a try

I used this trick to make east soldiers look like civilians and setcaptive true them so the west dont shoot, then made a script so they setcaptive false at a certain time and get masacred lol.

Share this post


Link to post
Share on other sites
Dunno, if it will work - but it might:

Create the unit as a medic, add the custom loadout and save. then alt+tab out and edit the actual mission file in notepad- scroll down to the unit in question and change vehicle from the medic model to the sniper model, this way he will look like a sniper but be a medic.

Like i say dunno if the actions (eg heal) are attached to model. Give it a try smile_o.gif

If you do this then change something to do with this unit in the editor it will change the model back to medic - so make the change just b4 u .pbo it. (obviously check if it works first)

That most definatly will not work.

Your options:

1: Create an addon unit that has all the properties of a sniper, and can heal. It's easy to do, but on the down side, it will be required by any users that download the mission. If it's an mp mission, that will most likely kill it.

2: Use some scripting and look into the addaction command and make an action to do it. Sadly, addaction is woefully underpowered.

It wouldn't be so bad if you could specify some sort of radius where the action appears, but otherwise.... It will appear for all units, in any locality the action exists, within something like a 10 meter radius at all times. It can only be turned on or off globally.

In all honesty, there's a fair chance you're better off just adding a medic or replacing something with a medic, if it's mp. If it's SP, pack it into an addon and just include it with the mission. It will only be a few KB if it's done right. If that's the solution you need, I'll even make it for you as a one off. If you know what you're doing, it's like a 10 min job.

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
Sign in to follow this  

×