• 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!

Lua [TFS 1.4] Spell Spell "straight" or "straw"

srunobantana

Member
Joined
Oct 24, 2021
Messages
42
Reaction score
19
Sorry for the translation, I'm Brazilian and the title might not accurately reflect what I want to convey.

I want a spell where a power is cast in a straight line, without needing a target, always in the direction the player is facing.


Effect616.webpEffect1172.webpEffect1158.webp
 
Solution
create combats for each direction, and in main function check this direction to detect which combat shouldbe executed, the func about getting direction its something like

LUA:
creature:getDirection()

if not, check the luascript.cpp
create combats for each direction, and in main function check this direction to detect which combat shouldbe executed, the func about getting direction its something like

LUA:
creature:getDirection()

if not, check the luascript.cpp
 
Solution
Back
Top