User Tools

Site Tools


script:world_event:seteffectscaleonposition

setEffectScaleOnPosition

  • 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 is to set the size of the special effect at the specified position
  • The specific use cases are as follows:
--Scale the specified special effect at the specified position
--The first three parameters are the coordinates of the special effect to be scaled
--The fourth parameter is the special effect id to be scaled
--The last parameter is the set scale ratio
World:setEffectScaleOnPosition(0,7,0,1001,2)
--Display in the chat box
Chat:sendSystemMsg("Enlarge the smoke special effect at the height 7 position (0,0) by two times")
script/world_event/seteffectscaleonposition.txt · Last modified: 2024/06/10 14:15 by don