Class "EntityFamiliar"
Functions
AddCoins () {: aria-label='Functions' }
void AddCoins ( int Value ) {: .copyable aria-label='Functions' }
AddHearts () {: aria-label='Functions' }
void AddHearts ( int Hearts ) {: .copyable aria-label='Functions' }
AddKeys () {: aria-label='Functions' }
void AddKeys ( int Keys ) {: .copyable aria-label='Functions' }
AddToDelayed () {: aria-label='Functions' }
void AddToDelayed ( ) {: .copyable aria-label='Functions' }
Adds to delayed. This doesn't remove other flags!
AddToFollowers () {: aria-label='Functions' }
void AddToFollowers ( ) {: .copyable aria-label='Functions' }
Adds to followers. This doesn't remove other flags!
AddToOrbit () {: aria-label='Functions' }
void AddToOrbit ( int Layer ) {: .copyable aria-label='Functions' }
Adds to orbitals. This doesn't remove other flags!
FireProjectile () {: aria-label='Functions' }
EntityTear FireProjectile ( Vector Dir ) {: .copyable aria-label='Functions' }
Shoots a projectile from the center of the familiar in the direction you defined. If used on a familiar that shoots multiple projectiles (example: harlequin baby), this function will only return the left most projectile based on the direction. If used on familiars with special tears (example: Lil Brimstone,...), this will just shoot a regular tear. This function will not play the shoot animation of the familiar.
FollowParent () {: aria-label='Functions' }
void FollowParent ( ) {: .copyable aria-label='Functions' }
FollowPosition () {: aria-label='Functions' }
void FollowPosition ( Vector Pos ) {: .copyable aria-label='Functions' }
GetOrbitDistance () {: aria-label='Functions' }
{: .static .tooltip .badge } {: .abp .tooltip .badge }
static Vector GetOrbitDistance ( int Layer ) {: .copyable aria-label='Functions' }
GetOrbitPosition () {: aria-label='Functions' }
Returns the position of an orbiting familiar relative to the player's position. Returns :::lua Vector(0,0) if its a normal familiar.
The "pos" argument is used as an offset.
MoveDelayed () {: aria-label='Functions' }
void MoveDelayed ( int NumFrames ) {: .copyable aria-label='Functions' }
MoveDiagonally () {: aria-label='Functions' }
void MoveDiagonally ( float Speed ) {: .copyable aria-label='Functions' }
PickEnemyTarget () {: aria-label='Functions' }
void PickEnemyTarget ( float MaxDistance, int FrameInterval ) {: .copyable aria-label='Functions' }
PlayChargeAnim () {: aria-label='Functions' }
void PlayChargeAnim ( Direction Dir ) {: .copyable aria-label='Functions' }
PlayFloatAnim () {: aria-label='Functions' }
void PlayFloatAnim ( Direction Dir ) {: .copyable aria-label='Functions' }
PlayShootAnim () {: aria-label='Functions' }
void PlayShootAnim ( Direction Dir ) {: .copyable aria-label='Functions' }
RecalculateOrbitOffset () {: aria-label='Functions' }
int RecalculateOrbitOffset ( int Layer, boolean Add ) {: .copyable aria-label='Functions' }
Returns the number of familiars in that layer.
RemoveFromDelayed () {: aria-label='Functions' }
void RemoveFromDelayed ( ) {: .copyable aria-label='Functions' }
RemoveFromFollowers () {: aria-label='Functions' }
void RemoveFromFollowers ( ) {: .copyable aria-label='Functions' }
RemoveFromOrbit () {: aria-label='Functions' }
void RemoveFromOrbit ( ) {: .copyable aria-label='Functions' }
Shoot () {: aria-label='Functions' }
void Shoot ( ) {: .copyable aria-label='Functions' }
???+ bug "Bugs" This function does not seem to work.
Variables
Coins {: aria-label='Variables' }
int Coins {: .copyable aria-label='Variables' }
FireCooldown {: aria-label='Variables' }
int FireCooldown {: .copyable aria-label='Variables' }
HeadFrameDelay {: aria-label='Variables' }
int HeadFrameDelay {: .copyable aria-label='Variables' }
Hearts {: aria-label='Variables' }
int Hearts {: .copyable aria-label='Variables' }
Keys {: aria-label='Variables' }
int Keys {: .copyable aria-label='Variables' }
LastDirection {: aria-label='Variables' }
Direction LastDirection {: .copyable aria-label='Variables' }
MoveDirection {: aria-label='Variables' }
Direction MoveDirection {: .copyable aria-label='Variables' }
OrbitAngleOffset {: aria-label='Variables' }
float OrbitAngleOffset {: .copyable aria-label='Variables' }
Can be used to override the angular position of the familiar on its orbit based on the initial starting position of the orbit.
???- example "Example Code" This code will make all of your orbitals move as a tight wall around you.
OrbitDistance {: aria-label='Variables' }
Vector OrbitDistance {: .copyable aria-label='Variables' }
Defines the orbit of the familiar, if its an orbital. The Vector is interpreted as the dimensions of the circle/oval orbit. Example: :::lua Vector(110,90)
is the orbital of "Forever alone".
Player {: aria-label='Variables' }
EntityPlayer Player {: .copyable aria-label='Variables' }
RoomClearCount {: aria-label='Variables' }
int RoomClearCount {: .copyable aria-label='Variables' }
ShootDirection {: aria-label='Variables' }
Direction ShootDirection {: .copyable aria-label='Variables' }
State {: aria-label='Variables' }
int State {: .copyable aria-label='Variables' }
Last updated