OnFPSSpectatorStarted Function: FPS Spectator Mode in Game
void function OnFPSSpectatorStarted( entity player, entity currentTarget ) { printt( 'Spectator_OnFPSSpectatorStarted' )
if (file.buttonHintsCreated)
{
for ( int i = 0; i < file.buttonHints.len(); i++ )
{
RuiSetBool( file.buttonHints[i], 'isObserverMode', true )
RuiSetBool( file.buttonHints[i], 'isFPS', true )
}
}
if(file.buttonHints.len() > 0)
{
#if NX_PROG || PC_PROG_NX_UI RuiSetString( file.buttonHints[1], 'xButtonDescLabel', '#OBSERVER_CONTROLLER_Y_BUTTON_DESC_ALT' ) #else RuiSetString( file.buttonHints[1], 'yButtonDescLabel', '#OBSERVER_CONTROLLER_Y_BUTTON_DESC_ALT' ) #endif } }
原文地址: https://www.cveoy.top/t/topic/mQgV 著作权归作者所有。请勿转载和采集!