View Issue Details

IDProjectCategoryView StatusLast Update
0008540Multi Theft Auto : San AndreasServerpublic2018-08-05 19:03
ReporterGrafuAssigned Tomyonlake 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Platform64-bitOSWindowsOS Version8.1 Pro
Product Version1.4 
Target Version1.5.6Fixed in Version1.5.6 
Summary0008540: Rotation doesn't get correctly set when respawning the player
Description

srun spawnPlayer(getPlayerFromName("playerName"), -1777.2, 984.46, 23.53, 90)

It will simply use the rotation the player had before respawning. Seems to be location dependent.

TagsNo tags attached.

Relationships

has duplicate 0009801 closedmyonlake New issues 'spawnPlayer' -> 'rotation' argument doesn't work well. 

Activities

Inspirator

2016-07-14 17:51

viewer   ~~0024934

Last edited: 2016-07-14 17:52

View 2 revisions

I can confirm this. The rotation isn't set most of the times.

function spawnClient()
spawnPlayer(source,-2002.631,437.596,35.016,270.06,0,0,0)
end
addEventHandler("onPlayerJoin",root,spawnClient)

Even adding setElementRotation after spawnPlayer doesn't work.

Walid_

2016-07-17 20:38

viewer   ~~0024944

Tested and Confirmed.

Zver-CR

2017-07-21 16:11

viewer   ~~0026085

Steps to reproduce:
srun createObject ( 982, 112.99110+2, -159.74959, 1.57813 )
srun spawnPlayer ( getRandomPlayer ( ), 112.99110, -159.74959, 1.57813, 180 )

It only happens when you create an object near the spawn

myonlake

2018-07-21 19:07

updater   ~~0026770

Able to reproduce in Multi Theft Auto v1.5.5-release-12430.

myonlake

2018-07-24 22:39

updater   ~~0026882

PR submitted at https://github.com/multitheftauto/mtasa-blue/pull/258

myonlake

2018-08-05 19:03

updater   ~~0026904

Merged in https://github.com/multitheftauto/mtasa-blue/commit/f9919a30b748f133112860060f5707bc76d7d4c6
Buildinfo: https://buildinfo.mtasa.com/?SHA=f9919a30b748f133112860060f5707bc76d7d4c6&Author=&Branch=&Revision=

Issue History

Date Modified Username Field Change