Aller au contenu

[Aide] Médic Spawn à Poile


Rayden
 Share

Recommended Posts

Bonjour, Bonsoir,

 

 

J'ai un problmème que j'essaye de régler depuis hier soir qui est introuvable.

 

Avec seulement mon médic, je spawn à poile sans carte et sans mon skin que j'ai apporter voici mes fichiers; Un peu d'aide serai pas de refus:

 

 

fn_initMédic.sqf

 

#include <macro.h>
/*
File: fn_initMedic.sqf
Author: Bryan "Tonic" Boardwine


Description:
Initializes the medic..
*/
private["_end"];
player addRating 99999999;
waitUntil {!(isNull (findDisplay 46))};


if((__GETC__(life_medicLevel)) < 1) exitWith {
["Notwhitelisted",FALSE,TRUE] call BIS_fnc_endMission;
sleep 35;
};


[] call life_fnc_medicLoadout;
[] call life_fnc_spawnMenu;


waitUntil{!isNull (findDisplay 38500)}; //Wait for the spawn selection to be open.
waitUntil{isNull (findDisplay 38500)}; //Wait for the spawn selection to be done.


[] spawn
{
while {true} do
{
waitUntil {uniform player == "U_Rangemaster"};
[[player,0,"textures\medic_uniform.jpg"],
[[unitBackpack player,0,"textures\med_backpack.jpg"],
waitUntil {uniform player != "U_Rangemaster"};
};
};


[] spawn
{
while {true} do
{
waitUntil {backpack player == "B_Carryall_oucamo"};
[[unitBackpack player,0,"textures\med_backpack.jpg"],
waitUntil {backpack player != "B_Carryall_oucamo"};
};
};


[] call life_fnc_uniform; 
[] execVM "msgbienvenueMedic.sqf";

fn_médicLoadout.sqf:

 

/*
File: fn_medicLoadout.sqf
Author: Bryan "Tonic" Boardwine


Description:
Loads the medic out with the default gear.
*/
private["_handle"];
_handle = [] spawn life_fnc_stripDownPlayer;
waitUntil {scriptDone _handle};


player addUniform "U_Rangemaster";
player addItem "FirstAidKit";
player addItem "FirstAidKit";
player addItem "ItemMap";
player assignItem "ItemMap";
player addItem "ItemCompass";
player assignItem "ItemCompass";
player addItem "ItemWatch";
player assignItem "ItemWatch";


[[player,0,"textures\medic_uniform.jpg"],"life_fnc_setTexture",true,false] spawn life_fnc_MP;
[[unitBackpack player,0,"textures\med_backpack.jpg"],"life_fnc_setTexture",true,false] spawn life_fnc_MP;


[] call life_fnc_saveGear;

fn_uniform:

 

/*
    Uniform Script
    Author: Eldayia
    Created for http://altisdev.com
    uniform_police_rangemaster.jpg
*/


    #define __GETC__(var) (call var)
    


    if (playerSide != independent) then {
        if ((uniform player) == "U_B_CombatUniform_mcam_vest")  then {
    player setObjectTextureGlobal [0, "textures\skin_cop4.jpg"]; //Tenue police\uni\cop - Cop
   };
        };


/*    if (playerSide != independent) then {
        if ((uniform player) == "H_Beret_02")  then {
    player setObjectTextureGlobal [0, "\A3\Characters_F_EPC\BLUFOR\Data\headgear_beret02_colonel_co.paa"]; //chapeau Socta
   };
        };
*/
    if (playerSide != independent) then {
        if ((uniform player) == "U_Rangemaster")  then {
    player setObjectTextureGlobal [0, "textures\medic_uniformjpg"]; //Tenue médic
   };
        };

Voilà

Lien vers le commentaire
Partager sur d’autres sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Invité
Répondre à ce sujet…

×   Vous avez collé du contenu avec mise en forme.   Supprimer la mise en forme

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Chargement
 Share

×
×
  • Créer...