Skip to content

ChaseOnWater

The same than ChasePlayer, but the y position is adjusted according to the map.waterfloat if one exists.

Frequency meaning

The same than ChasePlayer.

Additionaldata

The same than ChasePlayer.

DoBehavior

The same than ChasePlayer.

Update (Common end logic)

There is no logic here unlike ChasePlayer.

LateUpdate (Non dummy, and the entity is incamera, but not iskill)

If this behavior exists on the NPCControl (either default or inrange) and the map.waterfloat is present, the y component of the position and the entity.starpos are set to the map.waterfloat one clamped from the map.waterfloat.minwaterfloat - 0.5 to infinity. This forces the NPCControl to be positioned on the same level than the map.waterfloat object which is the object that defines where the water's surface is located.