User Tools

Site Tools


script:world_event:playparticleeffect

playParticalEffect

  • Parameters and types:
    • x,y,z: numberposition
    • particleId: numberspecial effect id
    • scale: numberSpecial effect size
  • Return value and type:
    • code: numberSuccess (ErrorCode.OK) ErrorCode
  • The main function of this method: Play special effects at the specified position
  • The specific use cases are as follows:
--Play the smoke special effect at the position of (0,0) height 7
--The first three parameters are the position coordinates of the special effect
--The fourth parameter is the special effect id of the special effect, which can be viewed in the "Special Effect Table Data" of "Mini World ID Query"
--The last parameter is the scale of the special effect
World:playParticalEffect(0,7,0,1001,1)
--Display in the chat box
Chat:sendSystemMsg("A smoke special effect was generated at the position of (0,0) height 7")
script/world_event/playparticleeffect.txt · Last modified: 2024/06/09 08:04 by don