Removing entity if i know only origin?
How can i remove an entity, if i only know its origin? (It has no targetname >.> )
|
Try:
Code:
|
OMFG, v3n, YOU SAVED ME AGAIN! ;P
|
Quote:
|
VEN, one problem, didnt work <.<
I made it like: Code:
Code:
|
*Bump*
I tried moving the entity to XYZ=9999, but it didnt move the ambient_generic at all >_< Only other entities around it :S |
Quote:
Quote:
Code:
Quote:
|
Or, just do a looping search, and delete it when the origin of the entity matches what its origin is.
|
I just tried it with
public stop1() { remove_entity(find_ent_in_sphere(-1, barrave, 900.0)) } Well, the windows and other stuff got removed, but not the sound. ambient_generic so obviously remove_entity won't remove that, is there a way to remove an ambient_generic? |
[edit]
Here is the proper way: Method #1: Code:
Method #2: Code:
|
| All times are GMT -4. The time now is 16:45. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.