Jump to content

Recommended Posts

Posted

I'm attempting to add the shotgun from the assets page into the AI demo level. But whenever I load the model, and save it as a prefab it loads in reverse in the game. I tried using

self.weapon.entity:SetRotation()

But, then my bullets go behind me and the muzzle flash gets stuck to the floor in front of spawn(No idea there.)

 

I might be blind but I cannot find where the direction of bullet is set in FPSplayer.lua. I'm also trying to orient my weapon outside of the FPSplayer script(So I can use multiple guns)

 

Any ideas would be great.

Posted

To turn your weapon, in the physics tab change Character angle to 180.

 

I just tried this with my character controller and my prefab and neither one turned the gun model the correct direction. I will press on for a different solution.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...