Skip to main content

HWeapon

Weapons are entities with firing, reloading and aiming functionalities They are fully customizable, all pieces of the weapon can be changed with immense possibility of creation

/// tip HWeapon is an Actor so it inherits all functions from Actor ///

Constructor

Example
local new_weapon = Weapon(
Vector(-900, 185, 215),
Rotator(0, 0, 0),
'/ShooterCore/Weapons/Pistol/Roger/B_WeaponActor_Roger.B_WeaponActor_Roger_C',
CollisionType.Normal,
true
)
TypeNameDefaultDescription
Vectorlocation
Rotatorrotation
[SkeletalMesh Reference]asset
CollisionTypecollision_typeCollisionType.Normal
booleangravity_enabledtrue

Functions