Jump to content

[HELP] Spawn projectile with right coordinates


Bombix95

Recommended Posts

Hi guys, i'm here asking your help.

I need to spawn a projectile (id 19 the rocket) from an object position and rotation, i'll explain better:

I have a vehicle, with an object attached to it that i rotate by input. Now this object has another object attached to it (a orange marker) that emulates a muzzle point, now what i'm trying to do is to spawn a rocket (when player presses the left mouse button) at the 'muzzle' location and rotation, like a Tank shell. I've already tried :

==> putting my player as the creator of the projectile, the result is that the rocket is spawned based on camera look rotation (u shoot where ur looking)

==> putting my vehicle as the creator of the projectile, the result is that the rocket is spawned based on the vehicle forward look (u shoot straight forward)

if anyone can lead me in the right direction I'd be grateful

Thanks in advance

Bye

Link to comment

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...