PDA

View Full Version : Question: How to warp to any...


The Source
07-12-2007, 02:17 PM
Question: How to warp to any location within the module that you are in?
Is it possible? How?

stoffe
07-12-2007, 02:26 PM
Question: How to warp to any location within the module that you are in?
Is it possible? How?

You can the JumpToLocation() function for this, for example:


void main() {
object oWarper = GetObjectByTag("TagToTeleport");

location lLoc = Location(Vector(1.0, 2.3, 0.0), 0.0);
AssignCommand(oWarper, ClearAllActions());
AssignCommand(oWarper, JumpToLocation(lLoc));
}

The Source
07-12-2007, 06:51 PM
Thanks Stoffe. :)

Where do I put this script?

Master Zionosis
07-12-2007, 08:24 PM
Thanks Stoffe. :)

Where do I put this script?

You can attach the name of the script to a dialogue node.

EnderWiggin
07-13-2007, 10:30 AM
Thanks Stoffe. :)

Where do I put this script?

I think you should be able to set it up as an armband.

_EW_

The Source
07-13-2007, 02:41 PM
Cool, thanks to both of you. :)