RLS Studios
ProjectsPatreonCommunityDocsAbout
Join Patreon
BeamNG Modding Docs

Guides

Reference

Server CommandsGE UtilitiesGame Engine MainNavigation GraphScreenshot CaptureServerServer ConnectionSpawnpoint ManagerSimulation TimeVehicle SpawningSuspension Frequency Tester
Gameplay AchievementGameplay CityDiscoverForce FieldGarage ModeMarker InteractionParking SystemGameplay Playmode MarkersGameplay PoliceGameplay RallyGameplay Rally LoopGameplay Raw POIsGameplay Skidpad TestSpeed Trap LeaderboardsSpeed Traps and CamerasGameplay StatisticsTaxi Ride SystemTraffic SystemVehicle PerformanceWalking
Drift Zone BoundsDrift Race PathDrift UI DisplayDrift Detection EngineDrift SystemDrift Quick MessagesDrift Save/LoadDrift ScoreboardDrift Scoring SystemDrift AudioDrift StallingDrift StatisticsDrift Stunt Zones
Donut ZoneDrift Through ZoneHit Pole ZoneNear Pole Zone

UI

Resources

BeamNG Game Engine Lua Cheat SheetGE Developer RecipesMCP Server Setup

// RLS.STUDIOS=true

Premium Mods for BeamNG.drive. Career systems, custom vehicles, and immersive gameplay experiences.

Index

HomeProjectsPatreon

Socials

DiscordPatreon (RLS)Patreon (Vehicles)

© 2026 RLS Studios. All rights reserved.

Modding since 2024

API ReferenceGE ExtensionsgameplaydriftstuntZones

Hit Pole Zone

Reference for the hit-pole stunt zone class, loaded via `require("gameplay/drift/stuntZones/hitPole")`.

Reference for the hit-pole stunt zone class, loaded via require("gameplay/drift/stuntZones/hitPole").


Overview

Spawns a delineator pole that the player must physically collide with while drifting. One-time use per reset (no cooldown, just becomes unavailable). Returns a class factory function.


Factory

return function(data) → hitPoleInstance

Class Methods

MethodSignatureDescription
init(data)Stores data, resets, spawns delineator vehicle (pole.pc config), creates overhead marker
reset()Resets physics on pole vehicle, clears/recreates marker
resetData()Resets activeData: hitPole=false, available=true
clear()Deletes pole vehicle and clears marker
clearMarker()Removes overhead race marker
createMarker()Creates overhead marker at pole position
accomplish()Clears marker, sets unavailable, fires onAnyStuntZoneAccomplished → onHitPoleAccomplished with angle and speed
detectStunt()Scores on first frame of collision detection
isAvailable()Returns self.activeData.available
onUpdate(dtReal, dtSim)Updates marker, detects vehicle collision via map.objects[vehId].objectCollisions
onVehicleDestroyed(vehId)If the pole vehicle is destroyed, removes this stunt zone

Key Behaviors

  • Spawns an actual delineator BeamNG vehicle as the pole
  • Collision detection uses the physics engine's objectCollisions map
  • Marker uses scenario/race_marker overhead style
  • One-shot: once hit, the zone becomes unavailable until reset()
  • Hook data includes currDegAngle and currAirSpeed for scoring

See Also

  • drift/stuntZones/donut - Donut Stunt Zone - Related reference
  • drift/stuntZones/driftThrough - Drift-Through Stunt Zone - Related reference
  • drift/stuntZones/nearPole - Near Pole Stunt Zone - Related reference
  • Gameplay Systems Guide - Guide

Drift Through Zone

Reference for the drift-through stunt zone class, loaded via `require("gameplay/drift/stuntZones/driftThrough")`.

Near Pole Zone

Reference for the near-pole stunt zone class, loaded via `require("gameplay/drift/stuntZones/nearPole")`.

On this page

OverviewFactoryClass MethodsKey BehaviorsSee Also