Raised This Month: $ Target: $400
 0% 

Entity from weapon


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
OvidiuS
Chillaxin'
Join Date: Dec 2009
Location: Serbia
Old 02-08-2013 , 20:22   Entity from weapon
Reply With Quote #1

I'm planning to give weapon to user, but i also need to get that entity.
Something like:
Code:
give_item( id, "weapon_m4a1" ); // Now i need entity from given weapon.
I know that i can use find_ent_by_owner( -1, "weapon_m4a1", id ), but is there any better way?
OvidiuS is offline
Send a message via Skype™ to OvidiuS
hleV
Veteran Member
Join Date: Mar 2007
Location: Lithuania
Old 02-08-2013 , 20:25   Re: Entity from weapon
Reply With Quote #2

Code:
new ent = give_item( id, "weapon_m4a1" );
__________________
hleV is offline
OvidiuS
Chillaxin'
Join Date: Dec 2009
Location: Serbia
Old 02-08-2013 , 20:40   Re: Entity from weapon
Reply With Quote #3

Thank you ;)
OvidiuS is offline
Send a message via Skype™ to OvidiuS
Reply



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 20:30.


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