Weapon Projectile Decal
Introduction
A decal spawned when a projectile hits something
Dependencies
The WeaponProjectileDecal relies on other components of this plugin to work:
- Logger: Used to log useful information to help you debug any issues you might experience
API Reference
Properties
| Property | Description | Type | Default Value | 
|---|---|---|---|
| bAutomaticallyDestroy | Should the decal automatically be destroyed? | bool | true | 
| Lifetime | The lifetime of the decal | float | 10.0f | 
Functions
| Name | Description | Params | Return | 
|---|---|---|---|
| DestroyDecal | Destroy the decal actor | 
Blueprint Usage
You can use the WeaponProjectileDecal using Blueprints by adding one of the following nodes:
- Ultimate Starter Kit > Weapon Projectile Decal > Destroy Decal
C++ Usage
Before you can use the plugin, you first need to enable the plugin in your Build.cs file:
PublicDependencyModuleNames.Add("USK");
The WeaponProjectileDecal can now be used in any of your C++ files:
#include "USK/Weapons/WeaponProjectileDecal.h"
void ATestActor::Test()
{
    // WeaponProjectileDecal is a pointer to the AWeaponProjectileDecal
    WeaponProjectileDecal->DestroyDecal();
}