Sources/CryGame C++/Solution1/CryGame/ScriptObjectPlayer.cpp
//////////////////////////////////////////////////////////////////////
/*!sets the gravity applyed to the player
	@param fGravity the gravity
*/
sets the gravity applyed to the player
@param fGravity the gravity
sets the gravity applyed to the player @param fGravity the gravity
int CScriptObjectPlayer::SetGravity(IFunctionHandler *pH)
{
	CHECK_PARAMETERS(1);
	float fGravity;
	pH->GetParam(1, fGravity);
	m_pPlayer->SetGravityOverride(fGravity);
	return pH->EndFunction();
}
int CScriptObjectPlayer :: SetGravity ( IFunctionHandler * pH ) { CHECK_PARAMETERS ( 1 ) ; float fGravity ; pH -> GetParam ( 1 , fGravity ) ; m_pPlayer -> SetGravityOverride ( fGravity ) ; return pH -> EndFunction ( ) ; }
sets the gravity applyed to the player
@param fGravity the gravity
sets the gravity applyed to the player @param fGravity the gravity