OFPEC Forum
Addons & Mods Depot => OFP - Addons & Mods General => Topic started by: Wires on 13 Jan 2003, 14:18:09
-
Please tell me what the hell is wrong with this bit of my .cpp if taken out it works fine but with the anim config in A instead of = bull$hit
Class Animations
{
class Hatch
{
type="rotation";
animPeriod=2;
selection="Hatch";
axis="OsaHatch";
angle0=0;
angle1=-3.054314;
};
};
class UserActions
{
class CloseHatch
{
displayName="Close Hatch";
position="Hatch";
radius=3;
condition="this animationPhase ""Hatch"" >= 0.5 and player in this";
statement="this animate [""Hatch"", 0]";
};
class OpenHatch
{
displayName="Open Hatch";
position="Hatch";
radius=3;
condition="this animationPhase ""Hatch"" < 0.5 and player in this";
statement="this animate [""Hatch"", 1]";
};
};
Basically straight from Colonel Klinks' tute just with the names changed ect
-
Did you add the vertice in your memory LOD for you *class UserActions position="Hatch";*?
Like Colonel Klinks *position="GearArea";*?
???
-
I thought you were on to something so I fixed that, thanks for pointing it out (the name was wrong) but it still doesn't work. :'(
-
try re-naming the vertice in the memory lod to pos_hatch, and then adjusting the position entries in the config to read
position="pos_Hatch";
-
Well it didn't work so here's the entire config
-
hmmm, what version of ofp are you running wires?
because the custom animations only work with 1.85+
i only say this because i noticed: requiredVersion = 1.30;
...................
-
Well I an running 1.91 so that shouldn't be a problem, however I did change the required ver bit just in case but no luck
-
ah, ok, well make sure that the hatch is defined in all the lods, and in the memory.
I can't see anyhting wrong with the config so.....
[edit] You could try re-naming the animation class hatch to "class adfhatch" so that it doesn't conflict with any BIS enteries...[/edit]