File tree Expand file tree Collapse file tree 2 files changed +12
-7
lines changed
EXILED/Exiled.API/Features Expand file tree Collapse file tree 2 files changed +12
-7
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,6 @@ namespace Exiled.API.Features
17
17
using Exiled . API . Enums ;
18
18
using Exiled . API . Extensions ;
19
19
using Exiled . API . Features . Components ;
20
-
21
20
using Footprinting ;
22
21
23
22
using MEC ;
@@ -52,6 +51,17 @@ public Npc(GameObject gameObject)
52
51
/// </summary>
53
52
public static new List < Npc > List => Player . List . OfType < Npc > ( ) . ToList ( ) ;
54
53
54
+ public new Vector3 Position
55
+ {
56
+ get => base . Position ;
57
+ set
58
+ {
59
+ base . Position = value ;
60
+ if ( Role is Roles . FpcRole fpcRole )
61
+ fpcRole . RelativePosition = new ( value ) ;
62
+ }
63
+ }
64
+
55
65
/// <summary>
56
66
/// Retrieves the NPC associated with the specified ReferenceHub.
57
67
/// </summary>
Original file line number Diff line number Diff line change @@ -506,12 +506,7 @@ public Player Cuffer
506
506
public Vector3 Position
507
507
{
508
508
get => Transform . position ;
509
- set
510
- {
511
- ReferenceHub . TryOverridePosition ( value , Vector3 . zero ) ;
512
- if ( Role is FpcRole fpcRole )
513
- fpcRole . RelativePosition = new ( value ) ;
514
- }
509
+ set => ReferenceHub . TryOverridePosition ( value , Vector3 . zero ) ;
515
510
}
516
511
517
512
/// <summary>
You can’t perform that action at this time.
0 commit comments