AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Solved [H3LP] Precache depending on entities (https://forums.alliedmods.net/showthread.php?t=303543)

DarthMan 12-11-2017 11:39

[H3LP] Precache depending on entities
 
Hello. Is there any way to check how many entities with a specific targetname are on the map and, by that, be able then to precache that amount of models? So, for example, if I 20 brush entities have that target then it must precache 20 models, each model will be assigned to that target. Thanks !

HamletEagle 12-11-2017 11:44

Re: [H3LP] Precache depending on entities
 
get all entities + pev_targetname? Or check targetname keyvalue?

DarthMan 12-11-2017 11:52

Re: [H3LP] Precache depending on entities
 
Quote:

Originally Posted by HamletEagle (Post 2565624)
get all entities + pev_targetname? Or check targetname keyvalue?

I fixed using FM_KeyValue in plugin_precache.


All times are GMT -4. The time now is 01:58.

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