BF2.US bf2-rsdeveloper wiki Parity Discord bf2.us
generated from the code

object

BF22142Heroes

71 commands. A game cell holds the argument types (and the return type after ->) that game registers; empty: the game does not have the command. Back to the console reference.

Scope badges
serveronly the server reads it: a mod on the server alone takes effect, players need nothingclientonly the game client reads it (drawing, sound, HUD): every player who should see it needs the modsharedthe server and every client read it: both need the same files, or the clients' view jumpsyesthe game has it; nobody has classified its scope yet
BF22142HeroesA game column holds that game's badge and the argument types its program registers; an empty cell means the game does not know the name. The Notes column gives the reason (how the scopes are worked out).
NameBF22142HeroesNotes
object.absolutePositionyes Vec3 -> Vec3yes Vec3 -> Vec3yes Vec3 -> Vec3property
object.absolutePositionSecondaryyes Vec3 -> Vec3yes Vec3 -> Vec3yes Vec3 -> Vec3property
object.absoluteTransformationyes Mat4 -> Mat4yes Mat4 -> Mat4yes Mat4 -> Mat4property
Object.activeyes world::IObject_ptrproxy -> world::IObject_ptrproxyyes world::IObject_ptrproxy -> world::IObject_ptrproxyyes world::IObject_ptrproxy -> world::IObject_ptrproxyproperty
object.addAbsolutePointyesmethod
object.attenuationRange1yes float -> floatyes float -> floatyes float -> floatproperty
object.attenuationRange2yes float -> floatyes float -> floatyes float -> floatproperty
object.coloryes Vec3 -> Vec3yes Vec3 -> Vec3yes Vec3 -> Vec3property
object.coneAngle1yes float -> floatyes float -> floatyes float -> floatproperty
object.coneAngle2yes float -> floatyes float -> floatyes float -> floatproperty
Object.createyes world::IObjectTemplate_ptrproxy, Vec3, Vec3 -> world::IObject_ptrproxyyes world::IObjectTemplate_ptrproxy, Vec3, Vec3 -> world::IObject_ptrproxyyes world::IObjectTemplate_ptrproxy, Vec3, Vec3 -> world::IObject_ptrproxymethod
Object.deleteyes world::IObject_ptrproxymethod
Object.deleteAllyes -> std::stringmethod
object.directionyes Vec3 -> Vec3yes Vec3 -> Vec3yes Vec3 -> Vec3property
object.disableChildrenyes bool -> boolyes bool -> boolyes bool -> boolproperty
Object.forceStartyes world::IObject_ptrproxyyes world::IObject_ptrproxyyes world::IObject_ptrproxymethod
Object.forceStopyes world::IObject_ptrproxyyes world::IObject_ptrproxyyes world::IObject_ptrproxymethod
object.fovyes float -> floatyes float -> floatyes float -> floatproperty
object.geometry.colorclient Vec4 -> Vec4property; BF2: only the game client registers it (the dedicated server does not know the line)
object.geometry.GenerateLightmapForThisInstanceclient bool -> boolclient bool -> boolclient bool -> boolproperty; BF2 and 2142: only the game client registers it (the dedicated server does not know the line); Heroes: 2142's verdict for the same name (Heroes shipped no server program)
object.geometry.loadMeshclient std::stringclient std::stringclient std::stringmethod; BF2 and 2142: only the game client registers it (the dedicated server does not know the line); Heroes: 2142's verdict for the same name (Heroes shipped no server program)
object.geometry.subGeometryclient int -> intclient int -> intclient int -> intproperty; BF2 and 2142: only the game client registers it (the dedicated server does not know the line); Heroes: 2142's verdict for the same name (Heroes shipped no server program)
object.geometry.subGeometryCountclient -> intclient -> intclient -> intproperty get; BF2 and 2142: only the game client registers it (the dedicated server does not know the line); Heroes: 2142's verdict for the same name (Heroes shipped no server program)
object.geometry.techniqueclient std::string -> std::stringclient std::string -> std::stringclient std::string -> std::stringproperty set; BF2 and 2142: only the game client registers it (the dedicated server does not know the line); Heroes: 2142's verdict for the same name (Heroes shipped no server program)
object.geometry.templateclient -> IGeometryTemplate*client -> IGeometryTemplate*client -> IGeometryTemplate*property get; BF2 and 2142: only the game client registers it (the dedicated server does not know the line); Heroes: 2142's verdict for the same name (Heroes shipped no server program)
object.getControlPointIdyes -> intmethod
Object.getGroundPosyes Vec3 -> Vec3method
object.getLightSourceMaskyes -> intyes -> intyes -> intmethod
object.getVisibleTeamyes -> intyes -> intyes -> intmethod
object.glowFrequencyyes float -> floatyes float -> floatproperty
object.glowOffsetyes float -> floatyes float -> floatproperty
object.glowTypeyes int -> intyes int -> intproperty
object.groupyes int -> intproperty
object.hasCollisionyes bool -> boolyes bool -> boolyes bool -> boolproperty
object.hasGlowyes bool -> boolyes bool -> boolproperty
object.hasUpdateyes bool -> boolyes bool -> boolyes bool -> boolproperty
object.HDRIntensityyes float -> floatyes float -> floatyes float -> floatproperty
Object.infoyes world::IObject_ptrproxy -> std::stringmethod
object.initGridyes Vec2, Vec2, int, Vec3yes Vec2, Vec2, int, Vec3yes Vec2, Vec2, int, Vec3method
object.isInGridyes bool -> boolyes bool -> boolyes bool -> boolproperty
object.isOvergrowthyes bool -> boolyes bool -> boolyes bool -> boolproperty
object.isSaveableyes bool -> boolyes bool -> boolyes bool -> boolproperty
object.isVisibleyes bool -> boolyes bool -> boolyes bool -> boolproperty
object.layeryes int -> intproperty
Object.listyes -> std::stringyes -> std::stringyes -> std::stringmethod
Object.listObjectsOfTemplateyes world::IObjectTemplate_ptrproxy -> std::stringyes world::IObjectTemplate_ptrproxy -> std::stringmethod
Object.loadAllyes std::string -> boolmethod
object.nameyes std::string -> std::stringyes std::string -> std::stringyes std::string -> std::stringproperty
object.notInAIyes bool -> boolyes bool -> boolyes bool -> boolproperty
Object.printScriptyes world::IObject_ptrproxy -> std::stringmethod
object.rotationyes Vec3 -> Vec3yes Vec3 -> Vec3yes Vec3 -> Vec3property
object.rotationSecondaryyes Vec3 -> Vec3yes Vec3 -> Vec3yes Vec3 -> Vec3property
Object.saveAllyes std::string -> boolmethod
object.scaleyes Vec3 -> Vec3yes Vec3 -> Vec3yes Vec3 -> Vec3property
object.setActiveyes boolmethod
object.setAsSkyLightyesyesyesmethod
object.setControlPointIdyes intyes intyes intmethod
object.setIsDisabledRecursiveyes boolyes boolyes boolmethod
object.setIsInTweakModeRecursiveyes boolyes boolyes boolmethod
object.setIsSaveableRecursiveyes boolyes boolyes boolmethod
object.setIsVisibleRecursiveyes boolyes boolyes boolmethod
object.setLightSourceMaskyes intyes intyes intmethod
Object.setObjectToGroundyes world::IObject_ptrproxy -> Vec3method
object.setTeamyes intmethod
object.setVisibleTeamyes intyes intyes intmethod
object.spawnOffsetyes Vec3 -> Vec3property
Object.startyes world::IObject_ptrproxymethod
Object.stopyes world::IObject_ptrproxymethod
object.teamyes int -> intproperty
object.templateyes -> const IObjectTemplate*yes -> const IObjectTemplate*yes -> const IObjectTemplate*property get
object.togglePauseyesyesyesmethod
Source: tools/devwiki/refs_console.py · built from bf2-rs e3b4f05 · part of the Battlefield 2 / 2142 / Heroes reimplementation. Not affiliated with EA or DICE.