question-circle Question about teleporters

  • Micman
  • Micman's Avatar Topic Author
  • Offline
  • New Marbler
  • New Marbler
More
24 Dec 2016 07:54 #1 by Micman
Question about teleporters was created by Micman
I was wondering if it were possible to change the direction your marble is facing when you enter a teleporter? Also, could it be possible to maintain speed through a teleporter?

Please Log in or Create an account to join the conversation.

  • Three
  • Three's Avatar
  • Offline
  • Lead Developer
  • Lead Developer
  • level designer
More
25 Dec 2016 04:37 #2 by Three
Replied by Three on topic Question about teleporters
Both of these features will be in PlatinumQuest, but they probably won't be included in MBP before then.

Follow me on twitter at @threefolder

Please Log in or Create an account to join the conversation.

  • Weather
  • Weather's Avatar
  • Offline
  • Professional Marbler
  • Professional Marbler
More
25 Dec 2016 11:58 #3 by Weather
Replied by Weather on topic Question about teleporters
This is a trigger from MBPU that people can use as long as they give credit to HiGuy and Whirligig. It doesn't allow you to change the camera angle and teleport the marble to a specific point, but it does keep the marble's velocity and camera angle. Just paste the code into the top of the mis file (completely above the "OBJECT WRITE BEGIN" line) with a text editor and it will appear in the trigger list.
// Seamless motion trigger from the Sandbox PowerPack for MBPU by HiGuy
// Dynamic field: offset
//  - The relative position to teleport the marble to in X Y Z
datablock TriggerData(SeamlessMotionTrigger) {
	tickPeriodMS = 100;
};
function SeamlessMotionTrigger::onAdd(%this, %trigger) {
	if (%trigger.offset $= "") { %trigger.offset = "0 0 0"; }
}
function SeamlessMotionTrigger::onEnterTrigger(%this, %trigger, %obj) {
	%obj.noPickup = true;
	commandToClient(%obj.client, 'MarbleTeleport', %trigger.offset);
	%obj.schedule((%obj.client.getPing() * 2) + 100, "setFieldValue", "noPickup", false);
}
The following user(s) said Thank You: HiGuy

Please Log in or Create an account to join the conversation.

Moderators: Kalle29AayrlRegislian