OFPEC Forum
Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: nuxil on 22 Feb 2009, 04:59:31
-
???
jiks. it may sounds weird and pherphaps is.
We know we can have a object/model as a animated dialog. "notebook/gps/compass/clock" so on.
this can be done by using RscObject.
The wiki over at bis does not got very much data bout this class and how to use it in arma.. or at least i could not find any,
the toturial i find one says its being updated more in version 1. i got v 0.8
Anyways. i havent messed around much with this spesific class, so i thought why not give it a try. so i did,
i made a dialog. for the model i used a solider, scaled him down. so when i open the dialog the solider appares..
now the problematic stuff. "animating it." How the snizzel" do i animate it. i took a look at how the compass does it. but i am still blank.
cos i dont want to rotate it and stuff.. i need the model to play a spesific animation. "one of the many ones."
here is example of the simple dialog
class RscObject;
class MINIME
{
idd = 500;
movingEnable = true;
objects[ ]={SLDR};
class SLDR : RscObject
{
model = "\ca\characters\us_soldier_b";
idc = 501;
type = 80;
x = 0.347;
y = 0.585;
z = 0.3;
scale = 0.04;
direction[] = {0, 0, 1};
up[] = {0, 1, 0};
/*
stuff that doesnt work
autoOpen = true;
autoZoom = true;
animSpeed = 1;
animation = "\ca\Anims\Characters\data\Anim\Sdr\mov\erc\stp\non\non\AmovPercMstpSnonWnonDnon_SaluteIn.rtm";
/*
};
};
use a trigger to create the dialog to open it.. easyest imo.
you probealy noticed the static animation it got..
i guess a class animations{} needs to be defined. but what should it contain?
Anyone ?
-
was looking into this myself a while back, decided to use the view lod to animate some switches instead, only thing i could find in the ui was the head where you try on a new face and the face moves when a new pitch of voice is added.
class objects
{
class Head : RscObject
{
model = "\ca\ui\face_preview";
modelWoman = "\ca\ui\face_preview";
idc = IDC_NEW_USER_HEAD;
type = CT_OBJECT;
x = 0.347; y = 0.585; z = 0.3;
xBack = 0.4; yBack = 0.25; zBack = 0.3;
scale = 0.16;
direction[] = {0, 0, 1};
up[] = {0, 1, 0};
faceType = man;
selectionLBrow = "lBrow";
selectionMBrow = "mBrow";
selectionRBrow = "rBrow";
selectionLMouth = "lMouth";
selectionMMouth = "mMouth";
selectionRMouth = "rMouth";
selectionEyelid = "eyelids";
selectionLip = "LLip";
selectionPersonality = "osobnost";
selectionGlasses = "eyelids";
};
};
maybe there is something in the library UI where you can test things ?
-
hmm i cant find anything in the UI
also. how do you get the face to move/animate when a new voice/pirch is selected ? my faces dosent animate.
can only select new ones.
im gonna try post this question at bis forums aswell