Thursday, May 10, 2012

CK: Teleport Trap

Interesting post about getting a teleport trap to work. Naturally Amethyst Deceiver immediately answered. Then someone else had another check to add when out in the world:


Scriptname Pitfall extends ObjectReference  

ObjectReference Property TeleportMarker auto

Event OnTriggerEnter(ObjectReference akActionRef)
 int isRider = Game.GetPlayer().GetSitState ()
 If ((akActionRef == Game.GetPlayer()) && (isRider == 0))
  akActionRef.MoveTo(TeleportMarker)
        EndIf
EndEvent

This will actually be very useful to me shortly. I'm going to make a large arena-type space. Thought about having obelisks to click on to teleport to different areas. Instead I could have arrows on the ground that can be walked on.

No comments:

Post a Comment