예제 #1
0
        private static void LoadJobObjective(object[] args)
        {
            var markerPosition = (Vector3)args[0];
            var markerSize     = Convert.ToSingle(args[1]);

            if (markerPosition == null)
            {
                return;
            }

            NextObjective?.Destroy();
            NextObjective = new MissionMarker(markerPosition, markerSize);
        }
예제 #2
0
        private static void CompleteObjective()
        {
            if (NextObjective == null)
            {
                return;
            }

            if (NextObjective.PlayerIsOnMarker)
            {
                NextObjective.Complete();
                NextObjective = null;
                RAGE.Events.CallRemote("job_objective_completed");
            }
        }