Click or drag to resize

Weapon

Vehicle AI Move To ObjectManual / Base Types / 3D / WeaponBullet

Weapon

A basis class for making weapons.

Contents
Overview

Using this class, you can create objects that can shoot. The examples are placed in 'Assets\Content\Weapons'.

Screenshot999999999999133.png
How to use

Character can interact with the object.

Screenshot999999999999130.png
Screenshot999999999999135.png
Properties
Name Description
Idle Animation An animation of the weapon at rest.
Mode1 Enabled Whether to enabled a mode 1.
Mode1 Firing Total Time Total time of one firing cycle.
Mode1 Firing Fire Time The time of the bullet creation during firing cycle.
Mode1 Bullet Type The type of the bullet.
Mode1 Bullet Transform The initial position, rotation and scale of the bullet.
Mode1 Bullet Speed The initial speed of the bullet.
Mode1 Bullet Dispersion Angle The maximal dispersion angle of the bullet when fired.
Mode1 Bullet Count The number of bullets when fired.
Mode1 Fire Animation An animation of the weapon at fire.
Mode1 Fire Animation Speed The multiplier for playing the fire animation.
Mode1 Firing Begin Sound The sound that is played when the firing begins.
Mode1 Fire Sound The sound that is played when a shot occurs.
Mode2 Enabled Whether to enabled a mode 2.
Mode2 Firing Total Time Total time of one firing cycle.
Mode2 Firing Fire Time The time of the bullet creation during firing cycle.
Mode2 Bullet Type The type of the bullet.
Mode2 Bullet Transform The initial position, rotation and scale of the bullet.
Mode2 Bullet Speed The initial speed of the bullet.
Mode2 Bullet Dispersion Angle The maximal dispersion angle of the bullet when fired.
Mode2 Bullet Count The number of bullets when fired.
Mode2 Fire Animation An animation of the weapon at fire.
Mode2 Fire Animation Speed The multiplier for playing the fire animation.
Mode2 Firing Begin Sound The sound that is played when the firing begins.
Mode2 Fire Sound The sound that is played when a shot occurs.
Left Hand Transform The place of holding with the left hand. X - forward, -Z - palm. Set all zeros to disable the left hand.
Right Hand Transform The place of holding with the right hand. X - forward, -Z - palm. Set all zeros to disable the right hand.
Position Offset When Attached The transform offset of the weapon relative to the owner.
Rotation Offset When Attached The additional vertical degree for the weapon to the owner eyes looking vector.
Position Offset When Attached First Person The transform offset when the weapon is attached to the first person camera.
Rotation Offset When Attached First Person The additional vertical degree when the weapon is attached to the first person camera.
Always Display Additional Info Whether to display initial position and direction of a bullet and places of hands.
See also
Vehicle AI Move To ObjectBullet