Jump to content

Creating new weapon Prefab


aarrowh
 Share

Recommended Posts

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.

Link to comment
Share on other sites

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.

 Share

×
×
  • Create New...