CBaseEntity

From Valve Developer Community
< Zh
Revision as of 11:45, 26 September 2024 by Nescius (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
English (en)中文 (zh)Translate (Translate)

所有实体基于的类。

编程相关

要获得一个实体的 classname,使用

entity->edict()->GetClassName();

断言(Asserts)

客户端(Client)

问题:

// 找不到模型
Assert( !"Model could not be found, index is -1" );

解决方案:

  • 检查你的模型名称三次。
  • 在服务器和客户端上都预缓存你的模型。