I added
<propclass name="tools.property" />
to the entity file name but the engine bugs out when the file is loaded. It says there is no factory to load the property class too.
the entity file:
<world>
<plugins>
<plugin name="celentity">cel.addons.celentity</plugin>
</plugins>
<sector name="Scene">
<addon plugin="celentity" entityname="Muck1">
<propclass name="pcobject.mesh">
<action name="LoadMesh">
<par name="filename" string="/lib/Muck/library" />
<par name="factoryname" string="spr3dSphere" />
</action>
</propclass>
<propclass name="pcobject.mesh.select" />
<propclass name="tools.property" />
<propclass name="pcmove.linear">
<action name="InitCD">
<par name="body" vector=".2,.2,.2" />
<par name="legs" vector=".2,.2,.2" />
<par name="offset" vector="0,-.3,0" />
</action>
</propclass>
<behaviour name="box_behave" />
</addon>
</sector>
</world>
and the C++ code:
battle1_entity = pl->FindEntity("Muck1");
csRef<iPcProperties> pcprop = CEL_QUERY_PROPCLASS_ENT (battle1_entity, iPcProperties);
pcprop->SetProperty("Health", muckHealth);
I must be missing something?