How to get the angle of the surface hit?
#1

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?
Reply
#2

Yeah that ^^^^


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

Quote:
Originally Posted by ******
Посмотреть сообщение
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.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)