special effects play||doc135643

September 20, 2022


 Blockman:playEffectByPos(templateName, position, yaw, duration, scale) 
  • The class to which the function belongs:Blockman


Play the effect at the specified coordinates.


Variable name type Description
templateName string The pathname of the effect
position Vector3 where the effects play
yaw float yaw angle
duration int duration (milliseconds, 1000ms = 1 second)
scale Vector3 scale value, default { x = 1, y = 1, z = 1 }

Code Samples

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