Raised This Month: $ Target: $400
 0% 

Get weapon entity index when dropped


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Buckshot
Senior Member
Join Date: Mar 2014
Location: Sweden
Old 04-17-2014 , 18:20   Get weapon entity index when dropped
Reply With Quote #1

So i'd like to get the index of a certain weapon, so that i can do stuff with this entity.
Example:

Let's say i gave this player who has the index in a function an m4, and he decides to drop it. When he drops it, set glow to that weapon if it's an m4, and the owner of the m4 is correct. Don't set glow on other players m4 when they drop theirs. Only if it's the player that i previously chose in my function.

No need to teach me how to set glow on entities, i know that part. I just need to know how to detect weapon dropping, and checking who it belongs to, and storing the entity index of the weapon inside a variable so that i can do a bunch of stuff to it.
__________________
PM me for private work.



Last edited by Buckshot; 04-17-2014 at 18:33.
Buckshot is offline
Send a message via Skype™ to Buckshot
 



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 17:53.


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