Sources/CryGame C++/Solution1/CryGame/ScriptObjectWeaponClass.cpp
////////////////////////////////////////////////////////////////////////////////////////////////////////////////
/*! Sets the first-person-weapon position and orientation
@param v3Pos position of weapon
@param v3Angles orientation of weapon
*/
Sets the first-person-weapon position and orientation
Sets the first - person - weapon position and orientation
int CScriptObjectWeaponClass::SetFirstPersonWeaponPos(IFunctionHandler *pH)
{
	CHECK_PARAMETERS(2);
	CScriptObjectVector oVec(m_pScriptSystem,true);
	Vec3d v3Pos;
	Vec3d v3Angles;
	pH->GetParam(1,*oVec);
	v3Pos=oVec.Get();
	pH->GetParam(2,*oVec);
	v3Angles=oVec.Get();
	m_pWeaponClass->SetFirstPersonWeaponPos(v3Pos,v3Angles);	
	return pH->EndFunction();
}
int CScriptObjectWeaponClass :: SetFirstPersonWeaponPos ( IFunctionHandler * pH ) { CHECK_PARAMETERS ( 2 ) ; CScriptObjectVector oVec ( m_pScriptSystem , true ) ; Vec3d v3Pos ; Vec3d v3Angles ; pH -> GetParam ( 1 , * oVec ) ; v3Pos = oVec . Get ( ) ; pH -> GetParam ( 2 , * oVec ) ; v3Angles = oVec . Get ( ) ; m_pWeaponClass -> SetFirstPersonWeaponPos ( v3Pos , v3Angles ) ; return pH -> EndFunction ( ) ; }
Sets the first-person-weapon position and orientation
Sets the first - person - weapon position and orientation