Walk-to points for objects?

Started by Kinoko, Mon 23/02/2004 10:50:45

Previous topic - Next topic

Kinoko

Whenever I look at an object, the character will walk to a certain point that I assume the game has determined is as close to that object as possible. A lot of the time, this spot the character walks to doesn't look right so I wanted to set a walk-to point for these objects. Seeing as there is no 'walk-to' point for objects as such, I just set a MoveCharacter in the interaction editor. However, when I look at an object now, it walks to the original "pre-set" point, and then turns around and walks to the point I've designated.

Is there a better way of going about this and just having the character walk straight to the point I want?

Timosity

did you remove the code for the movecharactertoobject first, it sounds as though it's doing that part before the movecharacter.

for moving to the specific point you want it is best to just work out that point and use movecharacter.

or a work around can be used by placing a hotspot walk-to-point (one that isn't used for a hotspot) at the point you want to walk to and call the MoveCharacterToHotspot when looking at the object.

hope that help

~Tim

Gregjazz

Yeah, I've thought about the 'reference hotspot' for objects used for walkto points. Would it not be better to just have an object property that contains the object walkto coordinates?

a-v-o

you can use custom properties for this, but then you would have to type the coordinates and use a movecharacter command to get the character there

Kinoko

What exactly (so I can find it) is the code for MoveCharacter to object that you mentioned?

I tried the other suggestion about creating a walk-to point from an unused hotspot and sending the character there before displaying the message, but the same problem still exists.

The problem isn't how to get him to the spot I want. It's how to get the character to the coordinates I want without him moving towards the spot near the object that the game determines it should go.

I think that move character to bject code sounds like it might be the key though, so I'd like to try getting rid of that first.

Timosity

look up 'Character functions' or 'MoveCharacterToObject' in the manual and that should help.

and for your other question, there is box in the general settings tab in the editor - 'walk to hotspot in Look mode'

I'm not sure if that's what you were after, but it may be, if so make sure it is ticked.

~Tim

Kinoko

You know what? That was part of it. I found myself on the general settings tab going, "Why on earth is that not ticked?". Must have accidentally unchecked it at some point ^^;; Ah, sorry for wasting everyone's precious, precious time.

I also took the time to do a little more research (it must have passed me by the first time I checked the manual) and discovered that I needed to change the AlwaysGoToHotspots=1 line to 0.

Thanks everyone for helping an idiot!

SMF spam blocked by CleanTalk