Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
deltagamer

Model Hide (Works in Buldozer not in-game)

Recommended Posts

Hey everyone,

I've set a few parts on my model to be hidden when I use the following code in the vehicles init line but it doesn't seem to work in-game. I did have it working in-game before but I think I did something to it that has sadly broken it :( It does however work in Buldozer without any problem its just in-game it won't do anything.

this exec "\USAF_HH60G\scripts\animationscript\removepilotdoors.sqf";

this exec "\USAF_HH60G\scripts\animationscript\removeprobe.sqf";

removepilotdoors.sqf:

_hh60 =_this select 0;
_phase=_this select 1;

_hh60 animate ["pilotdoors1",_phase]; 

removeprobe.sqf

_hh60 =_this select 0;
_phase=_this select 1;

_hh60 animate ["probe",_phase]; 

This is what I have setup in my model.cfg:

class probe
{
       type="hide";
       source="probe";
       selection="probe";
minValue=0;
maxValue=0.1;
	hideValue = 0.1;
	unhideValue = 0;
};
class pilotdoors1
{
type="hide";
source="pilotdoors1";
selection="pilotdoors1";
minValue=0;
maxValue=0.1;
	hideValue = 0.1;
	unhideValue = 0;
};

Any help on this would be greatly appreciated as I'm completely unsure on whats causing the problem.

Share this post


Link to post
Share on other sites

Hmmm im not at my comp but quick glance try higher hide values. .1 is pretty small and may not be enough to hide them. Test ingame, alot of animations can be done in O2 that wont show up correctly ingame (or at all)

Share this post


Link to post
Share on other sites

Thanks for the response Warlord, I managed to fix it now anyways :) Turns out its just something as simple as this:

model.cfg

class probe
{
type="hide";
source="HideProbe";
selection="probe";
};

And adding to the config.cpp this

class AnimationSources : AnimationSources
{
    class HideProbe
    {
    source = "user";
    animPeriod = 2;
    initPhase = 0;
     };	
};

Then this in the units init:

this animate ["probe",1];

Share this post


Link to post
Share on other sites
Sign in to follow this  

×