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

RevScripts Spell with code

Me again

Intermediate OT User
Joined
Jun 14, 2007
Messages
774
Reaction score
121
Can anyone provide me a script for a spell of lets say a dragon that will move in front of the player before using the spell?

So when the dragon does fire wave he first moves in front of the player so it hits the player more accurately?

Thanks in advanced guys.
 
I think you need to change monster AI in source files to achieve this.

Check out monster.cpp

What you need to do probably is make a check to see if monster is within target of player, if not, move to target~
Making use of isInRange and moveTo (through pathfinding)
 
There are some functions you can use. For instance, if you create a wave spell for the "dragon" and then use the function to check distance "getDistance" or even check where the monster is facing. You can do what you are asking for. Pretty easy and straight forward. Hope it helps.
 
Back
Top