JU TPS Documentation
  • 🤩Welcome to JU TPS
  • 😄Quick Start
    • How to start a new scene
    • How to create a JU Character / Reskin Default Character / Setup New Characters
      • Ragdoll
      • Damageable Body
      • Physical Damage
      • Body Leaning Setup
      • Taking Damage / Healing
      • Footstep System
      • Resizable Capsule Collider
    • 📦 Addon Installer
  • 🎮Game Development
    • Game Styles
      • Third Person Shooter Style
      • First Person Shooter Style
      • Top Down Style
      • 2.5D Sidescroller Style
      • ⚠️Important Info About Cross-Plataform
    • Controls / Inputs
      • JU Input Manager
      • Input Events
    • How to create a Mobile Game with JU TPS
      • Mobile Inputs
    • How to load scene
      • Scene Controller
    • How to use Cover System
    • How to use inventory and add items
      • Inventory in UI
      • How to switch between items
      • How to align weapon rotation
    • How to create weapons and items
      • Prevent gun clipping through walls
      • Creating Projectiles/Bullets
    • How to use Dual Wielding System
    • How to use Armor/Cloth System
    • How to use Vehicle System
      • Standard Vehicle Configuration
      • How to create a Car Controller
      • How to create a Motorcycle Controller
      • Vehicle Engine Sounds
      • Coding Custom Wheeled Vehicles
      • How to enter and exit from a vehicle
    • How to use Gravity Switching
    • How to use Actions/Skill and Animation Events
      • JU TPS State Machine Behaviours
      • JUTPSActions Lib Scripting Reference
    • Camera State Trigger
    • How to use Enemies AI
    • How to use Vehicles AI
  • ⚙️Tools, Utils and Tutorials
    • General Tutorials
      • How to do Ragdoll Fall with Input Event
      • How to disable FPS Aim Mode / Scope / Iron Sight Aim
    • Auto Scripts
    • Icon Generator Tool
    • Destructible Objects System
      • Fracture Generator Tool
    • Pixel Quality Scaler
    • Camera Shake
    • Slow Motion
    • Gizmo Drawer
  • ▶️Video Tutorials
    • How to use JU TPS
  • 💬Discord Community
  • ❓Support | Help
  • 📍Roadmap
  • 🔃Change Log
  • 📦Official Addons
Powered by GitBook
On this page
  1. Game Development
  2. How to create weapons and items

Creating Projectiles/Bullets

To use the weapons you need bullets, see how to create bullets below

PreviousPrevent gun clipping through wallsNextHow to use Dual Wielding System

Last updated 1 year ago

In the prefabs folder already have projectile prefabs, you can just edit them to save time.

1- Set Item tag and layer to "Bullet" and Add a Rigidbody and Collider to detect collisions

2- Add the Bullet script and configure it

Parameters
Description

Bullet Velocity

Speed

Bullet Damage

Damage

Destroy Time

Destroy Delay after hit something

High Precision Collision Detection

Uses raycasting to detect collisions precisely, consumes a bit more physics processing (not relevant enough not to use)

Impact Add Force

If the collided object is a rigidbody the force of the impact will move the collided object

Ricochet

Enable Ricochet System

Ricochet Angle

Angle to ricochet

Max Ricochets

Max ricochets

Movement Type

Calculated: moves the bullet to the endpoint

Teleport: teleports the bullet to the end point

Physics: move the bullet to the end point

Impact FX

Here you can configure particle effects according to tags.

🎮