!set the relative position 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 position of the object */
| 688 | @param pPos table with the x,y,z fields that contain the position of the object |
| 689 | */ |
| 690 | int CScriptObjectEntity::SetObjectPos(IFunctionHandler *pH) |
| 691 | { |
| 692 | CHECK_PARAMETERS(2); |
| 693 | CScriptObjectVector pPos(m_pScriptSystem,true); |
| 694 | int nSlot; |
| 695 | Vec3 vPos; |
| 696 | pH->GetParam(1,nSlot); |
| 697 | pH->GetParam(2,pPos); |
| 698 | vPos=pPos.Get(); |
| 699 | m_pEntity->SetObjectPos(nSlot,vPos); |
| 700 | return pH->EndFunction(); |
| 701 | } |
| 702 | |
| 703 | /*!return the relative orientation in the entity space of a certaing geometry(object) attached to the entity |
| 704 | @param nSlot slot of the geometry |
no test coverage detected