sahisahi
Member
I added some custom landtile (cave) they have Impassable and Wall flags added.
then i created a custom mob that do certain things on his OnThink method, theres a LOS check, for some reason mob still sending the ebolt effect through wall.
Any clue?
if i add Item 74 (wall) to the game the mob just wall through unless i set it to non movable, is this even normal?
then i created a custom mob that do certain things on his OnThink method, theres a LOS check, for some reason mob still sending the ebolt effect through wall.
Any clue?
if i add Item 74 (wall) to the game the mob just wall through unless i set it to non movable, is this even normal?
C#:
public override void OnThink()
{
base.OnThink();
if (Combatant == null)
{
this.CurrentSpeed = 0.1;
return;
}
if (this.Combatant.Player && Combatant.InLOS(this))
{
if ( Utility.Random( 58 ) == 1 )
{
SendEBolt( Combatant );
}