NudgeZone
Jump to navigation
Jump to search
A Nudge Zone is an Intruder MM script that allows map makers to push the players from certain areas. They're used on official maps to dissalow players from standing on top of doors and in Mountainside in the water, to push players towards the waterfall.
Properties
| Property | Description |
|---|---|
| Nudge Settings | |
| Nudge Speed | The speed the Nudge Zone will apply |
| Lerp Speed | The lerp used when applying the speed |
| Ragdoll Interaction | |
| Ragdoll speed | - |
| Ragdoll torque | - |
| Ragdoll Direction Transform | The object to follow the direction of |
| Direction Setup | |
| Direction Transform | The object to follow the direction of |
| Options | |
| Two way | Is the nudge zone two way |
| Misc Options | |
| Affect Y Velocity | Affects the falling speed |
| Allow Player Movement | If the Nudge Zone allows movement while on it or if it blocks the player controls until they're pushed out of it |
Easy setup
The easiest way to setup a Nudge Zone is as follow
- Add a unity cube
- Disable the mesh renderer
- Check the Box Collider "Is Trigger" checkbox
- Add the Nudge Zone script to the cube
- Assign the Direction Setup field of the script to the unity cube you just created
- Assign the Ragdoll Direction Transform to the unity cube you just created
- Modify the Nudge Speed value to a number like 10
- You should see a purple line that beggins on the center of the unity cube, that's the direction the player is going to be moved when colliding with the Nudge Zone
Now you can place and rotate your zone to whenever you want to in order for them to move the player.