Player.control: Difference between revisions

From Sierra Wiki
Jump to navigationJump to search
sierraw>Andrew Branscom
m 1 revision imported
 
Andrew Branscom (talk | contribs)
m 2 revisions imported
 
(One intermediate revision by the same user not shown)
(No difference)

Latest revision as of 15:55, 16 February 2025

The player.control command restores player control over the ego screen object.

Syntax

player.control();

Remarks

By default, ego (screen object o0) is controlled by the player via the keyboard, joystick and/or mouse. If ego is in program control mode (by executing the program.control command, or by using move.obj, move.obj.v or wander ), this command restores control back to the player. Ego's direction is not affected when control mode is changed.

Possible Errors

None.

Example

Code:
program.control();  [ now player cannot control ego 
...
player.control();   [ player control is restored

Technical Information

Required Interpreter Version: Available in all AGI versions.
Byte-Code Value: 132 (0x84 hex)

See Also

System Commands
program.control