| Property | Value |
|---|---|
| Native Name | _CELL_CAM_MOVE_FINGER |
| Hash | 0x95C9E72F3D7DEC9B |
| Return Type | void |
| Parameters | direction (int) |
Description: Moves the character's finger in a swiping motion when holding a cellphone in their hand through the use of the CREATE_MOBILE_PHONE native.
enum eCellInput {
CELL_INPUT_NONE = 0,
CELL_INPUT_UP = 1,
CELL_INPUT_DOWN = 2,
CELL_INPUT_LEFT = 3,
CELL_INPUT_RIGHT = 4,
CELL_INPUT_SELECT = 5
}
Parameters
direction(int) — The direction to swipe to, refer toeCellInputenum.
Examples
CreateThread(function()
local eCellInput = {
CELL_INPUT_NONE = 0,
CELL_INPUT_UP = 1,
CELL_INPUT_DOWN = 2,
CELL_INPUT_LEFT = 3,
CELL_INPUT_RIGHT = 4,
CELL_INPUT_SELECT = 5
}
-- Create a mobile phone object and animate the character
CreateMobilePhone(eCellInput.CELL_INPUT_NONE)
Wait(2000)
-- Swipe up
CellCamMoveFinger(eCellInput.CELL_INPUT_UP)
Wait(1500)
-- Swipe right
CellCamMoveFinger(eCellInput.CELL_INPUT_RIGHT)
Wait(1500)
-- Tap the screen
CellCamMoveFinger(eCellInput.CELL_INPUT_SELECT)
end)