示例#1
0
 public DynamicRaceCheckpoint(CheckpointType type, Vector3 position, Vector3 nextPosition,
                              float size           = 3.0f, int worldid = -1, int interiorid = -1, BasePlayer player = null,
                              float streamdistance = 100.0f, DynamicArea area = null, int priority = 0)
 {
     Id = Internal.CreateDynamicRaceCP((int)type, position.X, position.Y, position.Z, nextPosition.X,
                                       nextPosition.Y, nextPosition.Z, size, worldid, interiorid, player?.Id ?? -1,
                                       streamdistance, area?.Id ?? -1, priority);
 }
 public DynamicPickup(int modelid, int type, Vector3 position, int worldid = -1, int interiorid = -1,
                      BasePlayer player = null, float streamdistance = 100.0f, DynamicArea area = null, int priority = 0)
 {
     Id = Internal.CreateDynamicPickup(modelid, type, position.X, position.Y, position.Z, worldid,
                                       interiorid, player?.Id ?? -1, streamdistance, area?.Id ?? -1, priority);
 }
示例#3
0
 public DynamicTextLabel(string text, Color color, Vector3 position, float drawdistance,
                         BasePlayer attachedPlayer = null, BaseVehicle attachedVehicle = null, bool testLOS = false, int worldid   = -1,
                         int interiorid            = -1, BasePlayer player = null, float streamdistance = 100.0f, DynamicArea area = null,
                         int priority = 0)
 {
     Id = Internal.CreateDynamic3DTextLabel(text, color, position.X, position.Y, position.Z, drawdistance,
                                            attachedPlayer?.Id ?? BasePlayer.InvalidId, attachedVehicle?.Id ?? BaseVehicle.InvalidId, testLOS,
                                            worldid, interiorid, player?.Id ?? -1, streamdistance, area?.Id ?? -1, priority);
 }
示例#4
0
 public DynamicActor(int modelid, Vector3 position, float angle, bool invulnerable = true, float health = 100.0f, float streamdistance = 200,
                     int worldid = -1, int interiorid = -1, BasePlayer player = null, DynamicArea area = null, int priority = 0)
 {
     Id = Internal.CreateDynamicActor(modelid, position.X, position.Y, position.Z, angle, invulnerable, health, worldid, interiorid,
                                      player?.Id ?? -1, streamdistance, area?.Id ?? -1, priority);
 }
 public DynamicObject(int modelid, Vector3 position, Vector3 rotation = new Vector3(), int worldid = -1,
                      int interiorid = -1, BasePlayer player = null, float streamdistance = 200.0f, float drawdistance = 0.0f, DynamicArea area = null,
                      int priority   = 0)
 {
     Id = Internal.CreateDynamicObject(modelid, position.X, position.Y, position.Z, rotation.X, rotation.Y,
                                       rotation.Z, worldid, interiorid, player?.Id ?? -1, streamdistance, drawdistance, area?.Id ?? -1, priority);
 }
示例#6
0
 public DynamicMapIcon(Vector3 position, Color color, MapIconType mapIconType = MapIconType.Local,
                       int worldid       = -1, int interiorid = -1,
                       BasePlayer player = null, float streamDistance = 100.0f, DynamicArea area = null, int priority = 0)
 {
     Id = Internal.CreateDynamicMapIcon(position.X, position.Y, position.Z, 0, color, worldid, interiorid,
                                        player?.Id ?? -1, streamDistance, (int)mapIconType, area?.Id ?? -1, priority);
 }
示例#7
0
 public DynamicCheckpoint(Vector3 position, float size = 1.0f, int worldid          = -1, int interiorid       = -1,
                          BasePlayer player            = null, float streamdistance = 100.0f, DynamicArea area = null, int priority = 0)
 {
     Id = Internal.CreateDynamicCP(position.X, position.Y, position.Z, size, worldid, interiorid,
                                   player?.Id ?? -1, streamdistance, area?.Id ?? -1, priority);
 }