FANDOM


Die Property SpawnInfo legt die Informationen fest, die den Spawn des Spielers bestimmen.

Funktionen:

Funktion Returntype
.setSpawnInfo(float x, float y, float z, int interiorId, int worldId, float angle, int skinId, int teamId, WeaponModel weapon1, int ammo1, WeaponModel weapon2, int ammo2, WeaponModel weapon3, int ammo3) void
.setSpawnInfo(Vector3D pos, int interiorId, int worldId, float angle, int skinId, int teamId, WeaponData weapon1, WeaponData weapon2, WeaponData weapon3) void
.setSpawnInfo(Location loc, float angle, int skinId, int teamId, WeaponData weapon1, WeaponData weapon2, WeaponData weapon3) void
.setSpawnInfo(AngledLocation loc, int skin, int team, WeaponData weapon1, WeaponData weapon2, WeaponData weapon3) void
.setSpawnInfo(SpawnInfo info) void


Beispiel:

protected void onPlayerConnect(PlayerConnectEvent event) {
    event.getPlayer().setSpawnInfo(new Vector3D(234f, 212f, 555f),0,0,0,6,0,new WeaponData(WeaponModel.BRASSKNUCKLE, 0), new     WeaponData(WeaponModel.BRASSKNUCKLE, 0), new WeaponData(WeaponModel.BRASSKNUCKLE, 0));
    event.getPlayer().spawn();    
}