Table of Contents

Class Capybara

Namespace
Exiled.API.Features.Toys
Assembly
Exiled.API.dll

A wrapper class for AdminToys.CapybaraToy.

public class Capybara : AdminToy, IWorldSpace, IPosition, IRotation, IWrapper<CapybaraToy>
Inheritance
Capybara
Implements
IWrapper<CapybaraToy>
Inherited Members
Extension Methods

Properties

Base

Gets the base AdminToys.CapybaraToy.

public CapybaraToy Base { get; }

Property Value

CapybaraToy

Collidable

Gets or sets a value indicating whether the capybara can be collided with.

public bool Collidable { get; set; }

Property Value

bool

Prefab

Gets the prefab.

public static CapybaraToy Prefab { get; }

Property Value

CapybaraToy

Methods

Create(Transform)

Creates a new Capybara based on a Transform.

public static Capybara Create(Transform transform)

Parameters

transform Transform

The transform to spawn at.

Returns

Capybara

The new Capybara.

Create(Transform, Vector3?, Quaternion?, Vector3?, bool, bool)

Creates a new Capybara.

public static Capybara Create(Transform parent = null, Vector3? position = null, Quaternion? rotation = null, Vector3? scale = null, bool collidable = true, bool spawn = true)

Parameters

parent Transform

The transform to create this Capybara on.

position Vector3?

The local position of the Capybara.

rotation Quaternion?

The local rotation of the Capybara.

scale Vector3?

The local scale of the Capybara.

collidable bool

Whether the capybara has collision enabled.

spawn bool

Whether the Capybara should be initially spawned.

Returns

Capybara

The new Capybara.

Create(Vector3)

Creates a new Capybara at the specified position.

public static Capybara Create(Vector3 position)

Parameters

position Vector3

The local position of the Capybara.

Returns

Capybara

The new Capybara.

Create(Vector3, Quaternion)

Creates a new Capybara with a specific position and rotation.

public static Capybara Create(Vector3 position, Quaternion rotation)

Parameters

position Vector3

The local position of the Capybara.

rotation Quaternion

The local rotation of the Capybara.

Returns

Capybara

The new Capybara.