Lock

From ActiveWiki

Jump to: navigation, search

Using the lock command to the owner of the object. Other people that try and use the object command will not be able to. An example of a use of the lock command would be for locking doors that only you and a few of your friends can open.

The lock action command can be used to lock all actions listed after it, to be used by the object owner and/or to a list of citizen numbers. It works in combination with create, activate and bump triggers.

Tourists cannot take advantage of this command.

Contents

[edit] Usage

    lock [owners=NUM[:NUM]]

[edit] Description

Actions listed before the lock statement are executed for everyone. All actions after the lock statement are only executed for the allowed citizens or privilege used by a citizen.

Only object owners and citizens listed can execute the action command global, even if the global statement is listed before the lock statement.

[edit] Owners

The owners argument allows the user to define a list of citizen numbers (separated by colons) that will be able to use the following commands. See the examples below.

[edit] Examples

    activate lock, move 0 10 0 time=5
  • Allows only the owner of the object to click the object to activate the move.
    create sign "Click me", lock, media url=...
  • Plays media on that sign for the object owner only.
    create texture brick; activate lock owners=4711:1174:333333, picture my.space.com/...
  • Only the object owner and the listed citizen numbers (4711, 1174 and 333333) can activate to see the picture.
    bump lock owners=4711:1174:333333, move 0 1 0 name=door
  • Only the object owner and the listed citizen numbers (4711, 1174 and 333333) can trigger the move to open the objects called 'door' on bump.
Object Scripting

Triggers: CreateBumpActivateAdoneCollideSdoneEnter ZoneExit Zone

Commands: AddforceAddtorqueAnimateAstartAstopCameraColliderColltagColorCoronaEnviExamineFrameGroupLightLinkLockMatfxMediaMidiMoveNameNoisePictureRotateSayScale SeqShadowSignSolidSoundTagTeleport / TeleportxTextureURLVelocityVisibleWarpWeb

Personal tools
In other languages