neon-sprawl/bruno/neon-sprawl-server/ability-cast/Post move reset dev spawn b...

37 lines
721 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

meta {
name: POST move - reset dev spawn (ability-cast preset)
type: http
seq: 15
}
docs {
Resets authoritative position to `Game:DefaultPosition` (~-5, 0.9, -5) so `prototype_npc_melee` lock and cast range checks pass when the collection ran earlier requests that moved the player (e.g. seq 1011 resource-node gather). Runs before hotbar/target/cast (seq 2022).
}
post {
url: {{baseUrl}}/game/players/{{playerId}}/move
body: json
auth: none
}
headers {
content-type: application/json
}
body:json {
{
"schemaVersion": 1,
"target": {
"x": -5,
"y": 0.9,
"z": -5
}
}
}
tests {
test("status 200", function () {
expect(res.getStatus()).to.equal(200);
});
}