Monday, May 10, 2010

Portals

Portals:

Set-up:
-make a trigger(name doesn't matter)
-make a spawn point or marker somewhere else(remember name, for my example mine is named "jps")

Linking:
When an object enters a trigger, it is passed as "%obj" to the functions.
-click on your trigger
-click on the "entercommand" field to add your own script code.
-in the code put:
%obj.position = jps.position;

Notes: I assume this applys to all objects, so if you ran an NPC thru the portal they should be transported as well. It didn't transport my rocket when i shot it through the portal tho...


my notes for the day
Lonny

1 comment:

  1. Thanks for the post, helped me figure out what I was doing wrong when typing in the "enterCommand" script.

    ReplyDelete