NAVIGATION
Wiki » Reference » Prey Entities » rail_arm
ARTICLE
rail_arm
This is an entity on id Tech 4 engines, present on Prey. Below you can find its spawnflags, keys and editor settings for each game that defines it.
Prey
A animated model that can accept riders
Keys
| Key | Type | Default | Description |
|---|---|---|---|
| railbone | var | joint5 | bone to contain the bind controller for riders |
| dropOnPain | bool | 0 | whether damaging the rail cause riders to drop off |
| tension | var | 1.00 | tension of restoration force [0..1] (0.35) |
| anim | var | idle | anim to play when triggered. |
| defaultPose | var | anim to use to pose model when first spawned. pose_frame sets the frame. Model does not animate until triggered. | |
| pose_frame | var | 1 | which frame to use when spawning with a static pose. |
| start_anim | var | anim to play when first spawned. anim will loop until triggered. | |
| blend_in | var | 0 | how long to transition from the 'defaultAnim' to the triggered 'anim' |
| wait | var | -1 | how long to wait before auto activating. -1 means only activate when triggered. |
| cycle | var | -1 | how many times to play the animation after being triggered (use -1 for infinite). |
| remove | bool | set to 1 to remove object when animation finishes. | |
| target | var | all entities with a matching name will be used after anim plays. | |
| hide | bool | 0 | if 1, object remains hidden until triggered. |
| sound_bone | var | joint1 | Bone to play sounds from. |
| resetDefaultAnim | bool | 0 | restarts start anim after anim is done |
Editor
| Property | Value |
|---|---|
| Type | point entity |
| Spawn class | hhRailRide -> hhAnimated -> idAnimated -> idAFEntity_Gibbable -> idAFEntity_Base -> hhAnimatedEntity -> idAnimatedEntity -> hhRenderEntity -> idEntity -> idClass |
| Inherits | func_animate |
| Min | -16 -16 -1 |
| Max | 16 16 32 |
| Color | 0.3 0.3 0.75 |
Script events
| Event | Declared by |
|---|---|
| activate | hhRailRide |
| bindattach | hhRailRide |
| binddrop | hhRailRide |
| setAnim | hhAnimated |
| isAnimDone | hhAnimated |
| footstep | hhAnimated |
| leftFoot | hhAnimated |
| rightFoot | hhAnimated |
| startRagdoll | idAnimated |
| launchMissiles | idAnimated |
| gib | idAFEntity_Gibbable |
| SetConstraintPosition | idAFEntity_Base |
| setAFCollision | idAFEntity_Base |
| spawnFXAlongBone | hhAnimatedEntity |
| getJointHandle | idAnimatedEntity |
| clearAllJoints | idAnimatedEntity |
| clearJoint | idAnimatedEntity |
| setJointPos | idAnimatedEntity |
| setJointAngle | idAnimatedEntity |
| getJointPos | idAnimatedEntity |
| getJointAngle | idAnimatedEntity |
| moveToJoint | idEntity |
| moveToJointWeighted | idEntity |
| moveJointToJoint | idEntity |
| moveJointToJointOffset | idEntity |
| setSkin | idEntity |
| spawnDebris | idEntity |
| delayDamageEntity | idEntity |
| dispose | idEntity |
| setDeformation | idEntity |
| setFloatKey | idEntity |
| setVectorKey | idEntity |
| setEntityKey | idEntity |
| playerCanSee | idEntity |
| setContents | idEntity |
| setClipmask | idEntity |
| setPortalCollision | idEntity |
| killbox | idEntity |
| getName | idEntity |
| setName | idEntity |
| findTargets | idEntity |
| activateTargets | idEntity |
| numTargets | idEntity |
| getTarget | idEntity |
| randomTarget | idEntity |
| bindToJoint | idEntity |
| removeBinds | idEntity |
| bind | idEntity |
| bindPosition | idEntity |
| unbind | idEntity |
| setOwner | idEntity |
| setModel | idEntity |
| getShaderParm | idEntity |
| setShaderParm | idEntity |
| setShaderParms | idEntity |
| setColor | idEntity |
| getColor | idEntity |
| isHidden | idEntity |
| hide | idEntity |
| show | idEntity |
| cacheSoundShader | idEntity |
| startSoundShader | idEntity |
| startSound | idEntity |
| stopSound | idEntity |
| fadeSound | idEntity |
| getWorldOrigin | idEntity |
| setWorldOrigin | idEntity |
| getOrigin | idEntity |
| setOrigin | idEntity |
| getAngles | idEntity |
| setAngles | idEntity |
| getLinearVelocity | idEntity |
| setLinearVelocity | idEntity |
| getAngularVelocity | idEntity |
| setAngularVelocity | idEntity |
| getSize | idEntity |
| setSize | idEntity |
| getMins | idEntity |
| getMaxs | idEntity |
| touches | idEntity |
| setGuiParm | idEntity |
| setGuiFloat | idEntity |
| getNextKey | idEntity |
| setKey | idEntity |
| getKey | idEntity |
| getIntKey | idEntity |
| getFloatKey | idEntity |
| getVectorKey | idEntity |
| getEntityKey | idEntity |
| restorePosition | idEntity |
| updateCameraTarget | idEntity |
| distanceTo | idEntity |
| distanceToPoint | idEntity |
| startFx | idEntity |
| waitFrame | idEntity |
| wait | idEntity |
| hasFunction | idEntity |
| callFunction | idEntity |
| setNeverDormant | idEntity |
| playRumble | idEntity |
| stopRumble | idEntity |
| remove | idClass |
Last changed Sep 21, 2026
