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

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