Raised This Month: $ Target: $400
 0% 

Get weapon entity index when dropped


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Buckshot
Senior Member
Join Date: Mar 2014
Location: Sweden
Old 04-18-2014 , 09:39   Re: Get weapon entity index when dropped
Reply With Quote #9

Quote:
Originally Posted by ironskillz1 View Post
Loop through all entites and do set_rendering(ent) on them
I can show code later when Im on my computer


Edit:
Code:
new Entity = -1; 
while ( ( Entity = find_ent_by_class( Entity, "armoury_entity" ) ) ) 
{ 
	set_rendering(Entity);
}
I dont think you need to remove glow becuse next round the weapon will disappear
Yeah i could've done that. That feels abit unecessary though.. I feel there should be a better way than having to loop through all entities in the server, and remove glow on them all, even if they don't have glow.. just to be able to remove it on one. No i don't just need to remove it next rond. That was just an example. I'm gonna remove it when the game is over.
__________________
PM me for private work.



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


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


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