Beispiel #1
0
    public void MoveNpc(int spawnTriggerId, string patrolDataName)
    {
        PatrolData patrolData = MapEntityMetadataStorage.GetPatrolData(Field.MapId, patrolDataName);

        Field.State.Npcs.Values.FirstOrDefault(x => x.SpawnPointId == spawnTriggerId)?.SetPatrolData(patrolData);
    }
    public void MoveUserPath(string movePath)
    {
        PatrolData patrolData = MapEntityMetadataStorage.GetPatrolData(Field.MapId, movePath);

        Field.MovePlayerAlongPath(Field.State.Players.First().Value, patrolData);
    }