Operate Commands

From Wiki

Jump to: navigation, search

Operate Command let’s you create an instant interaction between the character and the iProp (props with embedded scripts). From using the Operate command you can direct the character to get onto the tank or get onto the motorcycle. You may even use posHelper to precisely control which point the character gets to or use ActionRadius for the character to get to the point from any angle.

Attribute Description Setting
HotkeyID Four options can be defined in this attribute DefStart (pick up), DefUse (fire), DefEnd (drop gun) and None (no hotkey defined).
DefStart, the hotkey used in Director Mode where you can directly command the character to start interact with the iProp. In Director Mode, select the character and ctrl+click the iProp to interact.

Image:defstart2.jpg
Data Type: ENUM
Default: None
ModeID New for iClone4 ModeID allows you to divide the Operate commands into multiple behavior modes.

Data Type: INT
Default: 0
Max: 9
Min: 1
ExcludeOwner New for iClone4 Defines whether you want to exclude the owner. TRUE = Exclude.

Eg. Since horse is a non-human character, when character gets off the horse the motion should exclude the owner from moving with the horse. Now they have independent motions on themselves.

Image:getoff.jpg

Data Type: BOOL
Default: False
PosHelper PosHelper sets the target position point and direction for the incoming interaction between character and prop. After you have done planning the direction of the prop, the character may reach to the prop's center (glowing point in the illustration) and face to the direction where the prop is planned.

Image:Poshelper 01e.gif Image:Poshelper 02c.gif

Note: poshelper is defined by certain formula, "$.Arrow", where "$" is the parent and ".Arrow" is the child.
Data Type: NODE
Default: None
AlignHelperZ

AlignHelperZ defines whether the character will align to the height of the destination PosHelper node when the character has reached to the helper position.

eg. character climbs into a tank or character go up the stairs

Image:alignZ2.jpg
Data Type: BOOL
Default: TRUE
AlignSnap

When AlignSnap is TRUE, the character will align and snap to terrain when landing onto the surface.

E.g. When the character climbs down from the tank to the position helper on the ground. The character will align and snap to the terrain and then walks away.

Data Type: BOOL
Default: FALSE
AlignFollow When AlignFollow is TRUE, the character will align its Z axis translation to Terrain normal after align iProp PosHelper. Data Type: BOOL
Default: FALSE
AlignUp When AlignUp is TRUE the character will keep the root normal up after aligned with the PosHelper of the iProp.

Image:alignup.jpg
Data Type: BOOL
Default: FALSE
ActionRadius

ActionRadius indicates the action range where the character can START to operate the target iProp from any angle. Whereas that PosHelper starts the interaction from a precise point and angle.

The following image shows the action area (yellow region) between the character and the iProp. Thus, when the character touches the border of the action area, she starts to interact with the iProp.

Image:Actionradius_b.jpg‎

Note: When the value is “0” (cm), the character will reach to the iProp’s center point and starts the interaction between the character and the iProp.

Data Type: INT
Default: 0
Max: inf.
Min: 0

Reference Tutorial: Avatar Any Angle Avatar Open the Door and Avatar posHelper