Hello everyone,
I got a question. I was playing around with the walktut files and found the "walktut_entities" file. I modified it a little so that not the monkeyhead but the cally model was moved around by the function. Unfortuenately cally doesn't want to walk, when initializing her that way. The model is just standing still and then by a magic hand moved through the environment.
<world>
<plugins>
<plugin name="celentity">cel.addons.celentity</plugin>
</plugins>
<sector name="Scene">
<addon plugin="celentity" entityname="badone">
<propclass name="pcobject.mesh">
<action name="LoadMesh">
<par name="filename" string="cally.cal3d" />
<par name="factoryname" string="test" />
</action>
</propclass>
<propclass name="pcobject.mesh.select" />
<propclass name="pctools.properties">
<property name="pos1" vector="-4,0,-15" />
<property name="pos2" vector="-2,0,-15" />
<property name="pos3" vector="-4,0,-15" />
<property name="up1" vector="0,1,0" />
<property name="up2" vector="0,1,0" />
<property name="up3" vector="0,1,0" />
<property name="forward1" vector="1,0,0" />
<property name="forward2" vector="-1,0,0" />
<property name="forward3" vector="1,0,0" />
<property name="time1" long="4000" />
<property name="time2" long="4000" />
<property name="time3" long="4000" />
</propclass>
<propclass name="pctools.timer">
<action name="WakeUp">
<par name="time" long="8000" />
<par name="repeat" bool="true" />
</action>
</propclass>
<propclass name="pcmove.linear">
<action name="InitCD">
<par name="body" vector=".5,.8,.5" />
<par name="legs" vector=".5,.4,.5" />
<par name="offset" vector="0,0,0" />
</action>
<action name="SetPosition">
<par name="position" vector="0,0.1,-15" />
<par name="sector" string="Scene" />
<par name="yrot" float="0" />
</action>
</propclass>
<behaviour name="badone_behave" />
</addon>
</sector>
</world>
This is the code of my customized walktut_entities file. I did not change anything in the behave.h or behave.cpp files.
My goal is to create between 0 to 10 cally-models and give them coordinates in a XML file, so that anyone can change the number and the paths of these models without having to rebuild the C++ code. Is there an example somewhere or any way to reach this goal faster than my approach?
looking forward to your answers.
chris