!set the relative orientation in the entity space of a certaing geometry(object) attached to the entity @param nSlot slot of the geometry @param pPos table with the x,y,z fields that contain the orientation of the object(in degrees) */
| 727 | @param pPos table with the x,y,z fields that contain the orientation of the object(in degrees) |
| 728 | */ |
| 729 | int CScriptObjectEntity::SetObjectAngles(IFunctionHandler *pH) |
| 730 | { |
| 731 | CHECK_PARAMETERS(2); |
| 732 | CScriptObjectVector pAng(m_pScriptSystem,true); |
| 733 | int nSlot; |
| 734 | Vec3 vAng; |
| 735 | pH->GetParam(1,nSlot); |
| 736 | pH->GetParam(2,pAng); |
| 737 | vAng=pAng.Get(); |
| 738 | m_pEntity->SetObjectAngles(nSlot,vAng); |
| 739 | return pH->EndFunction(); |
| 740 | } |
| 741 | |
| 742 | |
| 743 |
no test coverage detected