Jump to content

Let items spawn in front of the player


Sporny

Recommended Posts

I am working on a script which let admins spawn some items via mouse wheel menu.

 

How can i get the Position of the player and let him spawn a item in front?

I have the menu, but it dont spawn anything, because there are no coords.

 

Sorry for my bad english :(

Link to comment
Share on other sites

That totally depends how your admin tool works / who made it.

 

The 2 I know have a selection for a "target player", you will need to get that ID to poke _this  into your spawn script.

 

If you're able to script admin tools, you also should be able to determine in the current tools the methods that spawns items in front of YOU, and change "YOU" to "HIM".

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...