View Full Version : How to get the angle of the surface hit?

16/08/2014, 10:40 PM
Alright, for instance, let's say I shoot a wall, using OnPlayerWeaponShot I can get the location of the bullet point. I need to know the angle of the wall that it hit. For example to place a painting on the wall. Is this possible?

16/08/2014, 10:45 PM
Yeah that ^^^^

So technically it's currently impossible unless you wanted to do an effort doing it!

16/08/2014, 11:10 PM
Yes, if you load all model data from the game on the server. AFAIK there is currently no plugins or scripts to actually do this though.

Guess that means my script is on hold for now lol TBH I was going to create a Portal script, complete with velocity, a Companion Cube, etc. It's impossible to be able to predict velocity unless you know what surface the portal is on, simply because you need to give relative velocity based on the exit portal. I guess I will do what I can until I can't script any further.