
Configuring Ladders
This page will outline and explain how to create a configuration module and how to configure the vehicle for its setup.
The cfg.Ladders
section defines all supported ladder models along with their structure, attachment data, and behavior settings. Each ladder is broken into modular parts (_base
, _middle
, _end
, _full
) that are used to assemble, extend, and interact with ladders dynamically in the game.
Structure
cfg.Ladders = {
["9"] = { ... },
["105"] = { ... },
["135"] = { ... }
}
Each key ("9"
, "105"
, "135"
) represents a unique ladder type.
Each ladder is composed of several components:
_base
: The base section of the ladder._middle
: (Optional) Middle segments for extendable ladders._end
: The top section._full
: A single full-length static prop for carry/visual purposes.
Common Component Properties
Each component (_base
, _middle
, _end
, _full
) includes the following properties:
hash
The object model (hash) used for the prop.
attach
Positioning and rotation data for attaching to bones or the world.
extension
(Optional) Controls how the section extends, including speed.
bone
The bone index (if applicable) used for attachments.
Ladder Types
Ladder "9"
"9"
Simplest ladder with a base and end section, plus a full prop:
["9"] = {
_base = { ... },
_end = { ... },
_full = { ... }
}
_base.hash
:9base
_end.hash
:9end
_full.hash
:9mfull
No
_middle
section present.increment_speed
:0.005
Ladder "105"
"105"
Mid-sized ladder with a base, middle, and end segment:
["105"] = {
_base = { ... },
_middle = { ... },
_end = { ... },
_full = { ... }
}
Used for modular extension via
_middle
and_end
.hash
examples:105base
,105mid
,105end
,105full
attach.bone
:20
for middle and end,28422
for full prop
Ladder "135"
"135"
Largest and most complex ladder configuration:
["135"] = {
_base = { ... },
_middle = { ... },
_end = { ... },
_full = { ... }
}
hash
examples:135base
,135mid
,135end
,135full
attach.position
has distinct values per segment for realistic placementSupports multi-segment extension via
_middle
and_end
Extension Behavior
Each extendable part (_middle
, _end
) includes:
extension = {
increment_speed = 0.005
}
increment_speed
: Defines how fast the segment extends during animation or interaction.
Last updated