• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Spell Distance Effect separated (sqm)

Fabi Marzan

Well-Known Member
Joined
Aug 31, 2020
Messages
135
Solutions
6
Reaction score
67
Hi, I need a Scripts that the Distance Missiles go sqm by sqm...
Would you help me how to create this effect of the distance missiles?
Version: OTX2
gif_1211.gifscreen22.png
 
This is mostly just a loop of sendDistanceEffect / doSendDistanceShoot.

Use the player position as the anchor, then calculate the positions from there.

-- Example of the first portion of the loop, going from above player, diagonal.
Lua:
local playerPosition = getThingPosition(cid)
local fromPosition = {x = playerPosition.x, y = playerPosition.y - 1, z = playerPosition.z}
local toPosition = {x = playerPosition.x - 1, y = playerPosition.y - 2, z = playerPosition.z}

doSendDistanceShoot(fromPosition, toPosition, CONST_ANI_DEATH)
 
Back
Top