Raised This Month: $12 Target: $400
 3% 

Solved [H3LP] Precache depending on entities


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DarthMan
Veteran Member
Join Date: Aug 2011
Old 12-11-2017 , 11:39   [H3LP] Precache depending on entities
Reply With Quote #1

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 !

Last edited by DarthMan; 12-11-2017 at 11:52. Reason: Solved using FM_KeyValue
DarthMan is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 12-11-2017 , 11:44   Re: [H3LP] Precache depending on entities
Reply With Quote #2

get all entities + pev_targetname? Or check targetname keyvalue?
__________________
HamletEagle is offline
DarthMan
Veteran Member
Join Date: Aug 2011
Old 12-11-2017 , 11:52   Re: [H3LP] Precache depending on entities
Reply With Quote #3

Quote:
Originally Posted by HamletEagle View Post
get all entities + pev_targetname? Or check targetname keyvalue?
I fixed using FM_KeyValue in plugin_precache.
DarthMan is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 15:31.


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