You are viewing a potentially older version of this package. View all versions.
RiskofThunder-R2API_TempVisualEffect-1.0.0 icon

R2API TempVisualEffect

API for adding custom temporary visual effects for characters.

Date uploaded 2 years ago
Version 1.0.0
Download link RiskofThunder-R2API_TempVisualEffect-1.0.0.zip
Downloads 366462
Dependency string RiskofThunder-R2API_TempVisualEffect-1.0.0

This mod requires the following mods to function

RiskofThunder-HookGenPatcher-1.2.3 icon
RiskofThunder-HookGenPatcher

MMHOOK generation at runtime.

Preferred version: 1.2.3
bbepis-BepInExPack-5.4.2109 icon
bbepis-BepInExPack

Unified BepInEx all-in-one modding pack - plugin framework, detour library

Preferred version: 5.4.2109
RiskofThunder-R2API_Core-5.1.1 icon
RiskofThunder-R2API_Core

Core R2API module

Preferred version: 5.1.1
RiskofThunder-R2API_ContentManagement-1.0.6 icon
RiskofThunder-R2API_ContentManagement

API for adding content to the game

Preferred version: 1.0.6

README

R2API.TempVisualEffect - Custom temporary visual effects for characters.

About

R2API.TempVisualEffect is a submodule assembly for R2API that allows mod creators to easily add new VisualEffects to Characters that appear after a certain condition has been fulfilled.

Use Cases / Features

R2API.TempVisualEffect works via the method AddTemporaryVisualEffect, which allows you to have a prefab be instantiated in a CharacterBody after a specific condition becomes true. The prefab supplied must have the TemporaryVisualEffect component.

For the condition you use the EffectCondition delegate, which returns true if the visual effect should appear for the body.

You can also specify if the effect should be scaled using the body's best fit radius, or if the effect should spawn in a specific ChildLocator entry.

A separate overload for AddTemporaryVisualEffect takes an EffectRadius delegate, which returns a specific radius for the visual effect.

Related Pages

Changelog

'1.0.0'

  • Split from the main R2API.dll into its own submodule.