_CELL_CAM_MOVE_FINGER
DocsCellCamMoveFinger(direction)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
| Name | Type | Description |
|---|---|---|
direction | int | The direction to swipe to, refer to `eCellInput` enum. |
Returns
voidThis native does not return a value.
Examples
Official
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)