file Question about multiplayer spawn triggers

  • Blasted
  • Blasted's Avatar Topic Author
  • Offline
  • Senior Marbler
  • Senior Marbler
  • Speedrunner and Level Maker
  • Posts: 763
  • Thank you received: 105
05 Mar 2014 02:49 #1
How do you make spawn triggers spawn you in different gravities? If you don't know what I mean, take Battlecube Revisited for example. It has spawn triggers in different rotations that spawn you in different gravities/directions.

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

  • HiGuy
  • HiGuy's Avatar
  • Offline
  • Lead Developer
  • Lead Developer
  • PQ Developer Emeritus
  • Posts: 1333
  • Thank you received: 604
05 Mar 2014 06:53 - 05 Mar 2014 06:55 #2
To make a spawn trigger spawn you in an alternate gravity, you need to do the following:
  • Add the field "g" onto the trigger with a value of "1" or "true"
  • Set the trigger's rotation to the opposite direction of the direction you wish to spawn the player. Think of this like a gravity modifier. When the rotation is "1 0 0 0" (default), a gravity modifier will turn you upside-down. Same goes for spawn triggers. An easy way to see which direction you'll spawn is by looking at the Z axis on the axis gizmo. The direction the Z axis is facing will be your "down" gravity.

Here's an example rotated gravity modifier:


Note how it has the "g" field set, and is rotated like how I described above.

Let me know if you need more info :)
- HiGuy

This signature is real code
Code:
function clientcmd12dothepq() { commandToClient(LocalClientConnection, '34onthedancefloor'); }
Last edit: 05 Mar 2014 06:55 by HiGuy.

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

Moderators: Doomblah
Time to create page: 0.816 seconds
We use cookies

We use cookies on our website. Some of them are essential for the operation of the site, while others help us to improve this site and the user experience (tracking cookies). You can decide for yourself whether you want to allow cookies or not. Please note that if you reject them, you may not be able to use all the functionalities of the site.