Zh/CBaseEntity: Difference between revisions
< Zh
		
		
		
		Jump to navigation
		Jump to search
		No edit summary  | 
				No edit summary  | 
				||
| Line 3: | Line 3: | ||
所有实体基于的类。  | 所有实体基于的类。  | ||
{{seealso|{{L|Generic Keyvalues, Inputs and Outputs}}}}  | |||
{{  | |||
{{  | |||
= 编程相关 =  | = 编程相关 =  | ||
Latest revision as of 10:45, 26 September 2024
所有实体基于的类。
编程相关
要获得一个实体的 classname,使用
entity->edict()->GetClassName();
断言(Asserts)
客户端(Client)
问题:
// 找不到模型
Assert( !"Model could not be found, index is -1" );
解决方案:
- 检查你的模型名称三次。
 - 在服务器和客户端上都预缓存你的模型。