Professional Documents
Culture Documents
Refuel Hose
Refuel Hose
CCP
class UserActions
{
class extendrefueling
{
displayName = "Turn on refuelling";
position = "pilotcontrol";
onlyforplayer = 1;
showWindow = 0;
hideOnUse = 1;
radius = 5;
condition = "player in this and this animationPhase
""fuel_hose"" < 0.5 and speed this > 100";
statement = "this animate [""fuel_hose"",1];";
};
class retractrefueling
{
displayName = "Turn off refueling";
position = "pilotcontrol";
onlyforplayer = 1;
showWindow = 0;
hideOnUse = 1;
radius = 5;
condition = "player in this and this animationPhase
""fuel_hose"" > 0.5";
statement = "this animate [""fuel_hose"",0];";
};
};
-----------------------------------------------------------------------------------
-----------------------------
class AnimationSources: AnimationSources {
class fuel_hose
{
source = "user";
animPeriod = 2;
initPhase = 0;
};
-----------------------------------------------------------------------------------
-----------------------------
MODEL.CFG
"fuel_hose", "",
-----------------------------------------------------------------------------------
-----------------------------
MODEL P3D