Skip to content

Commit

Permalink
added teleport as server-side code
Browse files Browse the repository at this point in the history
  • Loading branch information
y0014984 authored Nov 17, 2023
1 parent 5902b77 commit df657bc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/bastelstube/arma-reforger.md
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ GetGame().GetPlayerController().GetControlledEntity().SetOrigin(target.GetOrigin

// execute locally on players machine; works in MP
SCR_Global.TeleportLocalPlayer(target.GetOrigin(), SCR_EPlayerTeleportedReason.DEFAULT);

// execute on server
SCR_Global.TeleportPlayer(playerId, target.GetOrigin(), SCR_EPlayerTeleportedReason.DEFAULT);
```

## Scheduled execution
Expand Down

0 comments on commit df657bc

Please sign in to comment.