Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CellCamMoveFinger.md #795

Merged
merged 2 commits into from
Aug 7, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 23 additions & 4 deletions MOBILE/CellCamMoveFinger.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,29 @@ aliases: ["_MOVE_FINGER"]
void _CELL_CAM_MOVE_FINGER(int direction);
```

```
For move the finger of player, the value of int goes 1 at 5.
```
Moves the character's finger in a swiping motion when holding a cellphone in their hand through the use of the [CREATE_MOBILE_PHONE](#_0xA4E8E696C532FBC7) native.
The direction parameter is limited from one to five (inclusive), with the direction of the swipe following the order: up, down, left, right, and tapping the screen.
AvarianKnight marked this conversation as resolved.
Show resolved Hide resolved

## Parameters
* **direction**:
* **direction**: Integer representing the direction the character will swipe.
AvarianKnight marked this conversation as resolved.
Show resolved Hide resolved

## Examples
```lua
-- Create a mobile phone object and animate the character
CreateMobilePhone(0)

Wait(2000)

-- Swipe up
CellCamMoveFinger(1)

Wait(1500)

-- Swipe right
CellCamMoveFinger(4)

Wait(1500)

-- Tap the screen
CellCamMoveFinger(5)
AvarianKnight marked this conversation as resolved.
Show resolved Hide resolved
```