Sources/CryGame C++/Solution1/CryGame/ScriptObjectPlayer.cpp
//////////////////////////////////////////////////////////////////////
// 1 - player has binoculars
// 0 - player has no binoculars

player has binoculars
0 - player has no binoculars
player has binoculars 0 - player has no binoculars
int CScriptObjectPlayer::GiveBinoculars(IFunctionHandler *pH)		
{
	CHECK_PARAMETERS(1);
	int value;
	pH->GetParam(1, value);
	m_pPlayer->GiveBinoculars( value!=0 );
	return pH->EndFunction();
}
int CScriptObjectPlayer :: GiveBinoculars ( IFunctionHandler * pH ) { CHECK_PARAMETERS ( 1 ) ; int value ; pH -> GetParam ( 1 , value ) ; m_pPlayer -> GiveBinoculars ( value != 0 ) ; return pH -> EndFunction ( ) ; }
1 - player has binoculars
0 - player has no binoculars
1 - player has binoculars 0 - player has no binoculars