AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Entity Problem (https://forums.alliedmods.net/showthread.php?t=109751)

KadiR 11-21-2009 06:39

Entity Problem
 
Can someone show me a way, how I can catch entities with a model name?
I want todo something if a player is on an entity called func_breakable.
Every entity got another model index number, so I want todo, if player is on func_breakable with the model index number *17 make function else func_breakable with the model index number *19 make this function etc.

I hope that everyone understood me :)

xPaw 11-21-2009 06:42

Re: Entity Problem
 
find_ent_by_model( -1, "func_breakable", "*19" )

KadiR 11-21-2009 06:48

Re: Entity Problem
 
But it does every time say me, that I'm on an another entity with the model index number 57 :E

Xellath 11-21-2009 06:58

Re: Entity Problem
 
http://forums.alliedmods.net/showpos...18&postcount=2

xPaw 11-21-2009 07:03

Re: Entity Problem
 
Show your code, kadir.

KadiR 11-21-2009 07:12

Re: Entity Problem
 
Solved i had a small typo..


All times are GMT -4. The time now is 13:40.

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