scripts/4_World/Classes/PlayerStates/StateManager.c
//! Removes a single state of a given type
Removes a single state of a given type
Removes a single state of a given type
void RemoveSecondaryState(int state_id)
	{
		for(int i = 0; i < m_StateQueueSecondary.Count();i++)
		{
			if( m_StateQueueSecondary.Get(i) && m_StateQueueSecondary.Get(i).GetType() == state_id )
			{
				m_StateQueueSecondary.Get(i).RequestDestroy();
				return;
			}
		}
	}
void RemoveSecondaryState ( int state_id ) { for ( int i = 0 ; i < m_StateQueueSecondary . Count ( ) ; i ++ ) { if ( m_StateQueueSecondary . Get ( i ) && m_StateQueueSecondary . Get ( i ) . GetType ( ) == state_id ) { m_StateQueueSecondary . Get ( i ) . RequestDestroy ( ) ; return ; } } }
Removes a single state of a given type
Removes a single state of a given type