User Tools

Site Tools


4rpl:commands:createeffect

Index
Effects

CreateEffect

CreateEffect(<-effectName <-pos <-scale)

Description

Creates an effect. The effect will be placed at the supplied 3D vector position. The scale vector will be applied to the effect to scale it. The name of the effect can be:

  • sparks
  • materialize
  • radial
  • radial2
  • explosion
  • explosion2
  • explosion3
  • explosion4
  • explosion5

Examples

CreateEffect("materialize" V3(10 5 20) V3(1 1 1))
CreateEffect("explosion2" GetUnitPosition(self) V3(1 1 1))

Effects

:!: Note: radial2 should be played slightly higher on the Y axis than unit position for it to display correctly. Also it's .y vector for size does not impact it's vertical size unlike with the other effects. V3(1 0.5 1) will create an oval, V3(1 1 1) will create a circle.

sparks
materialize


radial
radial2


explosion
explosion2
explosion3
explosion4
explosion5

Index

4rpl/commands/createeffect.txt · Last modified: 2024/02/18 15:32 by Vertu