SphereCommunity
Moving Ghost player problem - Printable Version

+- SphereCommunity (https://forum.spherecommunity.net)
+-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d)
+--- Forum: General Help (/Forum-General-Help)
+--- Thread: Moving Ghost player problem (/Thread-Moving-Ghost-player-problem)



Moving Ghost player problem - DartHVirS - 02-02-2018 01:43 PM

Hello,

I am trying to move a death player leaving its corpse behind, but the corpse goes with the player instead.

I tried using

ON=@DEATH
src.go xxx

or

src.p xxx

but the corpse goes with the player. What am I missing?

Thank you.

Nevermind, fixed with ON=@DeathCorpse


RE: Moving Ghost player problem - Coruja - 02-02-2018 02:19 PM

@Death is called before the char die, so if you move it to another region, it will die on this new region and the corpse will be created there

but after @Death, sphere also call @DeathCorpse is called when the corpse is being created, so here you can use something to deal with the char (SRC) and corpse (ARGO) individually. Maybe something like this:
Code:
ON=@DeathCorpse
ARGS=<SRC.P> //store current P
SRC.GO xxx //teleport the char
ARGO.P=<ARGS> //move the corpse to old P
ARGO.UPDATE