mirror of
https://github.com/SapphireServer/Sapphire.git
synced 2025-05-04 09:47:46 +00:00
Return (Action 6) now work (again?)
This commit is contained in:
parent
fc1521ef24
commit
0ed5c54504
1 changed files with 15 additions and 0 deletions
15
src/servers/Scripts/action/ActionReturn6.cpp
Normal file
15
src/servers/Scripts/action/ActionReturn6.cpp
Normal file
|
@ -0,0 +1,15 @@
|
|||
#include <Script/NativeScriptApi.h>
|
||||
#include "../ScriptObject.h"
|
||||
#include <Actor/Player.h>
|
||||
|
||||
class ActionSprint3 : public ActionScript
|
||||
{
|
||||
public:
|
||||
ActionSprint3() : ActionScript( 3 )
|
||||
{}
|
||||
|
||||
void onCastFinish( Core::Entity::Player& player, Core::Entity::Chara& targetActor ) override
|
||||
{
|
||||
player.returnToHomepoint();
|
||||
}
|
||||
};
|
Loading…
Add table
Reference in a new issue