Thank you !
But how can I get the entity ,when I select the target?I mean that I want to get the entity when I select the target ,so I can easily control my target!
Maybe the method that I think isn't good !So ,I want to tell you want I want to do ,I hope you can tell the method what can I do.
I want to make my game actor to attack the otherone ,so I must select one target ,and judge if my game actor can hit the target .So ,how can I do?
hi, all!!
I'm new guy for CEL.
I want to achieve a function for attack ,but how to select a target and get his information such as position and the object of the entity and so on??
Any comment will be welcome!
thanks
Hilake
You can use the pcmeshsel property class. If you use that then you will get messages in the behaviour that the mesh has been clicked on. Then you can ask the current position from the mesh (pcmesh->GetMesh ()->GetMovable ()->GetFullTransform().GetOrigin()).
Greetings,