PickRefByID

From GECK
Jump to: navigation, search


A function included in the GECK for Fallout 3.

Description

This function will select a reference by id for the console.

Console Functions are normally exclusively for use in the in-game Console (accessible by pressing "~").

With JIP LN NVSE Plugin, any console function can be used in scripts with the Console function.

Syntax

[help]
PickRefByID refID:ref 

Or:

PRID refID:ref

Example

prid 14 

Notes

  • References in the console may also be selected by opening the console, clicking the mouse, then rolling the mouse wheel to choose objects from the front of the screen to the back underneath the last pixel clicked. For instance, if you click on an object but receive "FXDust..." instead of the object you were trying to click, you can roll the mouse wheel up to select the desired object behind the obscuring visual effect.
  • All console commands, and all scripting language functions, will by definition be called on the currently selected reference when typed into the console.
  • The player reference number is always 14, so using the command
prid 14
will select the player in the console. This can be a convenient shorthand to avoid having to prefix every instruction with player. when attempting to edit the player character.
  • The selected reference will be deselected when you close the console. (To avoid this behaviour, you will require a modification which provides a setting to keep the same reference selected, such as lStewieAI's Tweaks (requires NVSE) and the bKeepSelectedConsoleRef option.)