Shooting Script !!!!!

Hi every on

I’m working on a first person shooter game

but i need 2 things :

  • a script to but it on the empty game object to shoot and damage the other characters

-a code to but in my script to play the shooting animation ( i have a script i can play walking and idle animations when i put it on the empty game object (gun) .)

Please help me !!! :frowning: :frowning:

A range of exclamation marks and the order to others to basically write a script for you did not result in what will be expected. Never.
Look at one of the example projects, everything you need is included. Educate yourself, try things out, make yourself familiar with Unity. What you are asking for is pretty basic.

Do you already have model with standing, walking and shooting animation?

yes i do

Select your 3d model in the project view, then set the animation sequence (see red circle)

Select your instantiated object in hierarchy view, then put the animation that you want to play (see red circle)

Create a java script, put in your object in hierarchy view
Write this in the script:

function Update () {
transform.animation.Play(“walk”);
}

That just example of my walk animation, you can change it with your shoot animation btw…