test command
This commit is contained in:
@@ -129,12 +129,8 @@
|
||||
mp.events.callRemote("CLIENT:SET_InFrontOfPos", entity.getOffsetFromInWorldCoords(0, 1, 0));
|
||||
});
|
||||
|
||||
mp.events.add("SERVER:GetInFrontOfPlayer", (entity: PlayerMp) => {
|
||||
let player = mp.players.local;
|
||||
let result = xyInFrontOfPos(entity.position, entity.heading, 0.5);
|
||||
result.z = player.position.z;
|
||||
mp.players.local.heading = entity.heading;
|
||||
mp.players.local.position = result;
|
||||
mp.events.add("attach to Player", (entity: PlayerMp) => {
|
||||
entity.attachTo(mp.players.local.handle, 0, 0, 1, 0, 0, 0, 0, false, false, false, true, 2, true);
|
||||
});
|
||||
|
||||
function xyInFrontOfPos(pos, heading, dist): Vector3Mp {
|
||||
|
||||
Reference in New Issue
Block a user