Almost did it...i mean it should work now but i`m having a problem, using the code from that post gets me into another problem, i don't know how to use the Y axis.
i`m using this code
before main loop
void crtDeclareForestCyclop(int objID, int crtHealth, int crtForce, int pathID, int posx, int posz)
{
dbPhyMakeRigidBodyDynamicCapsule(objID);
AIAddEnemy(objID,0);
AISetEntityPosition(objID,posx,posz);
if(pathID!=0){
AIEntityAssignPatrolPath(objID,pathID);
}
AIEntityLookAround(objID,0,180);
AISetEntityAggressive(objID);
AISetEntityAttackDistance(objID, 0.2f);
}
into the main loop:
void crtActForestCyclop(int objID)
{
dbPhySetRigidBodyKinematicPosition(objID,AIGetEntityX(objID),dbObjectPositionY(objID),AIGetEntityZ(objID));
}
but when the game starts the entity just keeps rising, any Y number set does the same, if i set it lower he goes down, bigger, goes up and not stopping.
How do i solve this one ?
Thanks in advance!