How do you get a bullet's impact position?
#1

How to get a bullet's impact position? I'm trying to make an exploding bullet, I need the XYZ position for CreateExplosion. Does anyone here know how to make one, I've search for "GetPlayerCameraFrontVector" but IDK how to use it. I want something like https://sampforum.blast.hk/showthread.php?tid=266187 but I do not want to teleport, I just want to get the position

EDIT
And BTW can I ask, when we close the server, does OnFilterScriptExit gets called? If yes, have the server cleaned all the player variables(PVars). I need to know it for my user account system, I want to save the user stats on OnFilterScriptExit?
Reply
#2

This is a fully released filterscript. If you want something specific, just take a look at that script and use the stuff you need, do it yourself. Life isnt a candy bar, you wont always get free sweeties just because you ask for them (unless youre asking strangers in vans)
Reply
#3

Quote:
Originally Posted by Mauzen
Посмотреть сообщение
This is a fully released filterscript. If you want something specific, just take a look at that script and use the stuff you need, do it yourself. Life isnt a candy bar, you wont always get free sweeties just because you ask for them (unless youre asking strangers in vans)
I do not understand how GetPlayerCameraFrontVector works and his math in his filterscript. I'm a beginner here, I will appreciate if someone will explain how these works and how to get the position. I've tried analyzing his script 3 times and I still do not understand anything

EDIT
Since you do not want to answer my first question, can you at least answer this

Quote:
Originally Posted by SlonCHL
Посмотреть сообщение
And BTW can I ask, when we close the server, does OnFilterScriptExit gets called? If yes, have the server cleaned all the player variables(PVars). I need to know it for my user account system, I want to save the user stats on OnFilterScriptExit?
Thank you
Reply
#4

Ok, I have it working but I don't know how to get the bullet's impact position, I can only get the position of my front camera view, not the distance from my front camera to an object. I can only create an object at a fix range right in front of my cross hair
Reply
#5

Hello? Can anyone help?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)