Ulysses
General => Developers Corner => Topic started by: Deathtitan77 on June 18, 2013, 08:55:15 AM
-
How can I do that?
-
There's an OnDamage hook that gives you this information.
-
Are you talking about this? http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/index7801.html
-
This one: http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/indexedfa.html
-
Well, I have a question for you. In this example: http://maurits.tv/data/garrysmod/wiki/wiki.garrysmod.com/indexe50a.html using dmginfo:GetInflictor():GetClass() prints 'player', any idea why?
It also says here: Entity Inflictor(usually a weapon)
-
You just have to explore all the options. There is a lot of information you haven't checked into yet. The gmod documentation is wrong (or at least misleading) 49% of the time.