Raised This Month: $ Target: $400
 0% 

[SOLVED] find entity by "gibmodel" value


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
kNowo
Senior Member
Join Date: Apr 2011
Location: Malaysia
Old 08-31-2013 , 14:30   [SOLVED] find entity by "gibmodel" value
Reply With Quote #1

Is it possible to find entities by their gibmodel value?

The code below is the properties of a func_breakable entity in a map. I'd like to do some stuff to these entities and they all share one same property, which is the "gibmodel".
Code:
{
  "model" "*1"
  "rendercolor" "0 0 0"
  "gibmodel" "models/metalplategibs_green.mdl"
  "targetname" "targetb"
  "explodemagnitude" "100"
  "material" "2"
  "health" "1"
  "spawnflags" "1"
  "classname" "func_breakable"
}
Let's say I'm trying to delete those entities and I used the code below but it return those entities as invalid
PHP Code:
while((aEnt engfunc(EngFunc_FindEntityByStringaEnt"gibmodel""models/metalplategibs_green.mdl")))
{
    
engfunc(EngFunc_RemoveEntityaEnt)


Last edited by kNowo; 08-31-2013 at 14:31.
kNowo is offline
 


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 18:59.


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