ActionExamine(object)

Examine an object

void ActionExamine(
    object oExamine
);

Parameters

oExamine

Object to examine


Description

In version 1. 61, this function hasn't been given a description by BioWare.

Will make a player examine an object.



Remarks

This will cause the examination box to pop up - the same one that is available through the radial menu.

Though this is an action, it finishes immediately. It doesn't wait for the box to be closed to finish - infact, it doesn't even appear to wait for the dialog box to appear. In my testing, adding an ActionSpeakString directly after the ActionExamine will cause the string to be spoken BEFORE the examination box appears.
This means that, while this may be a useful function, you should be careful when adding this to a larger action queue, as it can perhaps cause unreliable results.

One obvious use for this function is to have objects that must be examined for the player to find out what they're about. Some players will find it more natural to just click on the objects instead of examining them. With this command, both can accomplish the same result: See the code example.


Known Bugs

Can be unreliable together with other actions. See above.


Version

1.61

Example

void main()
{
object oPC=GetLastUsedBy();
object oTarget=OBJECT_SELF;

AssignCommand(oPC, ActionExamine(oTarget));
}

See Also

categories: Miscellaneous Functions | PC Only Functions


 author: Lilac Soul