Advertisement
snake5

gunplay v0.2 lua/C mix

Apr 11th, 2016
451
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.26 KB | None | 0 0
  1. int en_get_state( lua_State* L )
  2. {
  3.     if( lua_gettop( L ) != 1 )
  4.         return 0;
  5.  
  6.     CHEnemy* en = (CHEnemy*) g_pEntityManager->GetEntity( lua_tostring( L, 1 ) );
  7.     if( !en ) return 0;
  8.    
  9.     lua_pushstring( L, eha_action_names[ (u32) en->m_eAction ] );
  10.     return 1;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement