Raised This Month: $ Target: $400
 0% 

Entity Problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
KadiR
Unnecessary Member
Join Date: Aug 2008
Location: Zürich / Switzerland
Old 11-21-2009 , 06:39   Entity Problem
Reply With Quote #1

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
KadiR is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 11-21-2009 , 06:42   Re: Entity Problem
Reply With Quote #2

find_ent_by_model( -1, "func_breakable", "*19" )
__________________
xPaw is offline
KadiR
Unnecessary Member
Join Date: Aug 2008
Location: Zürich / Switzerland
Old 11-21-2009 , 06:48   Re: Entity Problem
Reply With Quote #3

But it does every time say me, that I'm on an another entity with the model index number 57 :E
KadiR is offline
Xellath
Veteran Member
Join Date: Dec 2007
Location: Sweden
Old 11-21-2009 , 06:58   Re: Entity Problem
Reply With Quote #4

http://forums.alliedmods.net/showpos...18&postcount=2
__________________
Achievements API - a simple way for you to create your OWN custom achievements!
Xellath is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 11-21-2009 , 07:03   Re: Entity Problem
Reply With Quote #5

Show your code, kadir.
__________________
xPaw is offline
KadiR
Unnecessary Member
Join Date: Aug 2008
Location: Zürich / Switzerland
Old 11-21-2009 , 07:12   Re: Entity Problem
Reply With Quote #6

Solved i had a small typo..
KadiR 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 13:40.


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