AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Ham_Precache, how to use ? (https://forums.alliedmods.net/showthread.php?t=144128)

dFF 11-29-2010 08:18

Ham_Precache, how to use ?
 
Title ?

Arkshine 11-29-2010 08:23

Re: Ham_Precache, how to use ?
 
Like any others Ham forward, you need to provide a classname to hook.

dFF 11-29-2010 08:40

Re: Ham_Precache, how to use ?
 
Like these ?
PHP Code:

iEnt entity_create"info_target" )

//stuff

ExecuteHamBHam_PrecacheiEnt 


Arkshine 11-29-2010 08:44

Re: Ham_Precache, how to use ?
 
To call it, yes, just need to pass an entity index. But info_target would be a wrong example this entity does nothing.

abdul-rehman 11-29-2010 08:51

Re: Ham_Precache, how to use ?
 
@Arkshine: whn is this forward called exactly (Ham_Precache )

dFF 11-29-2010 08:54

Re: Ham_Precache, how to use ?
 
I have create some entities and I set the model with EngFunc_SetModel or entity_set_model, I precached the model with precache_model or EngFunc_PrecacheModel and server crashed with error "model name_model not precached".

I copied the model in models folder, When I connected to server, the precache is fine, but after some rounds played, server crashed with not preache model.

Possible to not create correct the entities ?

Arkshine 11-29-2010 09:11

Re: Ham_Precache, how to use ?
 
@abdul-rehman : CClass::Precache() (CBasePlayer, CUSP, etc..) is called when an entity spawns.

@dFF : Show your code, it will be more easy to figure out your problem.


All times are GMT -4. The time now is 11:21.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.