dim3 Forum

Full Version: Documentation Trouble
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi, I have been looking through the docs a whole bunch and I am confused.

I have started a script for a bot to do this:

∆ Turn towards you
∆ play sound
∆ animation
∆ show bitmap on hud.

But I really don't know where to look in the docs for information on how to do it. Eddy does this in Awnee and though I'm not a big fan of Awnee it has a couple of nice effects in it. I was going to look at his script and use it for a reference but I couldn't access it.

This really should be fairly simple and I want to work step by step.

First,

To make it turn toward me I would have to use this script,
Code:
motion.Vector.TurntoPlayer;  // updated
Right?

I would like to be able to use the doc but I just can't tell what anything is and how to use it.
Thank you. Smile
No. First of all, you'll want to use turnToObject.

Take the name at the top of the docs
Code:
obj
scroll down to the section and add that to the beginning of the section name, separated by a period.
Code:
obj.motionVector
Then add the command.
Code:
obj.motionVector.turnToPlayer();
Then, in some cases you add parameters in between the parenthesees, but in this case there are none.

example of parameters:
Code:
turnToObject(object_unique_id); <--- in the docs
Code:
obj.motionVector.turnToObject(idVariable); <--- in actual code
Reference URL's