Jump to content
  • 0

Hard-coded fire a handgun shot


pablogener

Question

I'm working on a mod that will work as a "cover shooter", designed to be played in VR.

 

I managed to teleport the player to a map spot when the player fires at the walls of a sector in which the map spot is.

 

Now I want to bind spacebar to shooting the handgun.

 

I want to press the spacebar and have the player fire a gunshot, independant of what gun they're holding in their hand, and not have animations for weapon switch or anything, just pure hard-coded "black magic" handgun shot.

 

How could I achieve this?

 

Thanks a million to those who could help.

 

Share this post


Link to post

1 answer to this question

Recommended Posts

  • 0

What it would seem that you need a custom inventory item with overlay. You "pick it up" (give to player with a script) and it can fire or do whatever, if I understand you correctly.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Restore formatting

  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...