Add effects between two points||doc135645

September 20, 2022

Format

 Blockman:addBetweenEffect(templateName, position, endPos, duration) 
  • The class to which the function belongs:Blockman

Description

Add the effect between two points, that is, the effect is played between two coordinate positions.


Parameters

Variable name type Description
templateName string The pathname of the effect
position Vector3 starting coordinates
endPos Vector3 end coordinate
duration int duration (milliseconds, 1000ms = 1 second)


Code Samples

Blockman.Instance():addBetweenEffect( "asset/Effect/sea.effect", { x = 0, y = 10, z = 0 }, { x = 10, y = 10, z = 10 }, 1000)