Skip to content

EarthOrb

SittingFox edited this page Feb 18, 2015 · 10 revisions

EarthOrb

One of the elemental orb types in CodeSpells. It is currently the only one available. Its powers are associated with controlling the rocks and ground. The power to "grab" rocks can work on other objects, giving Earth Spells even more uses.

EarthOrb Members

Variables
power_lowerSandActivated Whether or not to lower sand beneath the orb.
power_lowerSandRadius The size of the area to lower sand.
power_liftSandActivated Whether or not to raise sand beneath the orb.
power_liftSandRadius The size of the area to raise sand.
Functions
breakPhysicalConnections Break any attachments the orb has with an object.
createPhysicalConnection Create an attachment with the orb and another object.
lowerSand Controls lowering sand beneath the orb.
liftSand Controls raising sand beneath the orb.

Inherited Members

Script Orb

Variables
distance Single ???
drawConnectionToOwner Boolean Draw a line from the orb to the owner's staff?
connectionToOwnerOffset Vector3 ???
isOrbitting Boolean Is the orb circling around the player?
lifeTime Single The time since the spell started.
localPositionToOwner Vector3 ???
lockedRelativeRotation Quaternion ???
lockedToRotation Boolean Lock the orb to the player's rotation?
lockRelativeToOwner Boolean Lock the orb to the owner's position?
maxOrbSpeed Single ???
orbitCurrentRotation Single ???
orbitDistance Single The distance away to orbit around.
orbitOffset Vector3 Offset the orbit from the orbit point.
orbitRotationalSpeed Single The speed of the orbit.
orbitRotationOffest Quaternion The angle at which the orb revolves in orbit.
orbittingObject OrbSpawner The object for the orb to orbit around.
owner OrbSpawner The original starter of the spell.
shooter PlayerOrbShoot The reator of the orb.
shouldDestroy Boolean Should the orb be destroyed?
Functions
CheckOwnerShooter ???
ClosestPointOnLine Given a point, returns closest point on line between two other points.
DepleteMana Decrease the amount of mana for multiple types.
destroySelf Destroys the orb.
disableOrbit Make the orb stop circling around something.
distanceToOwner How far the orb is from the spell creator.
distanceToPlayer How far the orb is from the player.
flattenRotationHorizontal Straightens the orb's rotation to point forward.
flattenRotationVertical Straightens the orb's rotation to point upward.
freezeCells ???
heatCells ???
lockToPlayerRotation Makes the orb stay in the player's viewpoint.
lockRelativeTo Locks orb's position relative to the object.
makeChildOfPlayerLookOrb ???
OnDestroy ???
orbitOwner Make the orb circle around the spell creator.
orbitPlayer Make the orb circle around the player.
playerLookPoint The point the player is looking at.
pointAtOwner Make the orb face the spell creator.
pointAtPlayer Make the orb face the player.
pointAwayFromOwner Make the orb face away from the spell creator.
pointAwayFromPlayer Make the orb face away from the player.
setVelocity Choose how fast the orb moves.
StartOrb ???
turnDown Turns the orb down by the given amount.
turnLeft Turns the orb left by the given amount.
turnToPlayerLookPoint Turns the orb to face where the player is looking.
turnRight Turns the orb right by the given amount.
turnUp Turns the orb up by the given amount.
unlockRelativeTo Frees the orb from being locked relative to an object.
unlockToPlayerRotation Frees the orb from the player's viewpoint.
UpdateNetworking ???
UpdateOrb ???

OrbSpawner

Variable
airMana Single Amount of Air Mana remaining.
dead Boolean Is it dead or not dead?
earthMana Single Amount of Earth Mana remaining.
lifeMana Single Amount of Life Mana remaining.
fireMana Single Amount of Fire Mana remaining.
waterMana Single Amount of Water Mana remaining.
Functions
AddAirMana Increase amount of Air Mana.
AddEarthMana Increase amount of Earth Mana.
AddFireMana Increase amount of Fire Mana.
AddLifeMana Increase amount of Life Mana.
AddWaterMana Increase amount of Water Mana.
DepleteAirMana Decrease amount of Air Mana.
DepleteEarthMana Decrease amount of Earth Mana.
DepleteFireMana Decrease amount of Fire Mana.
DepleteLifeMana Decrease amount of Life Mana.
DepleteWaterMana Decrease amount of Water Mana.
Kill Kills object.

MonoBehaviour

Behaviour

Variable
enabled Boolean Is object enabled?

Component

Object

Clone this wiki locally