• Spawning a prop where the player is looking
    2 replies, posted
I need help making a script where the player can spawn a prop a limited distance in front of them. I already have the spawn menu set up but I don't want the prop to spawn as soon as they press the button, I want them to have the ability to choose where it spawns, like when you spawn a prop using the tool gun.
Here's an example of spawning a prop in front of a player ( second function ). I should have another somewhere, but this should at least help you get started: [url]https://dl.dropboxusercontent.com/u/26074909/tutoring/entities/spawn_entity_in_front_of_player_by_calc_size_of_object.lua.html[/url]
[QUOTE=Acecool;46086808]Here's an example of spawning a prop in front of a player ( second function ). I should have another somewhere, but this should at least help you get started: [url]https://dl.dropboxusercontent.com/u/26074909/tutoring/entities/spawn_entity_in_front_of_player_by_calc_size_of_object.lua.html[/url][/QUOTE] Thank you, I will tweak this to fit my needs.
Sorry, you need to Log In to post a reply to this thread.