Thread
:
Get total of active tripmines placed by player
View Single Post
stupok
Veteran Member
Join Date: Feb 2006
10-31-2008 , 22:35 Re: Get total of active tripmines placed by player
#
2
You should look up the ent's classname after it has been placed. That way, you can use the code you've posted.
However, I'd suggest that you use a different method to count them. I'm not sure what your situation is like, but I'd recommend hooking when a mine is placed and when a mine explodes or is deleted, and doing the addition and subtraction there.
stupok
View Public Profile
Send a private message to stupok
Find More Posts by stupok