Hotspots and Talk mode

Started by Radiant, Thu 18/03/2004 15:27:02

Previous topic - Next topic

Radiant

Can I prevent EGO from walking to a hotspot's walkto point in TALK mode? (after all, he can shout to the hotspot from a distance)


strazer

Yes, the latest beta has a new variable:

game.auto_use_walkto_points
Default 1; set to 0 to stop AGS automatically using hotspot walk-to points.

Radiant

Let's see, that'd stop walk-tos entirely, but I can script something like
if CursorMode() == MODE_USE { moveCharacter (EGO, walkto.x, walkto.y) }   [sp?]

Right? Thanks!

strazer

Yes.
You would use

MoveCharacter (EGO, GetHotSpotPointX(THEHOTSPOTNUMBER), GetHotSpotPointY(THEHOTSPOTNUMBER));

SMF spam blocked by CleanTalk