Eye of the Nile Docs
Everything you need to know to get started!
Loading...
Searching...
No Matches
SpawnAE Class Reference

Detailed Description

Allows an ability to spawn a projectile where the ability owner (player) is.

Documentation updated 8/13/2024

Author
Roy Pascual
Deprecated
This script does not spawn the projectile the standard way the PlayerAttackManager does. Because of this, it’s recommended that you use the PlayerAttackManager's ShootProjectile() function (see fire/wind/rock ability info for an example). This script may be improved or repurposed in the future, but for now I would not recommend using it.
Todo
some spawn pattern variable eventually, or maybe a function
Note
This is a scriptable object, meaning you can make an instance of it in the Unity Editor that exists in the file explorer.

Public Member Functions

override void Apply (AbilityOwner abilityOwner)
 Instantiate the projectile prefab at the player’s position. (this is part of the problem. If you spawn a projectile inside the player it will just hit the player)
 
- Public Member Functions inherited from AbilityEffect
void Apply (AbilityOwner abilityOwner)
 Run by the ability info object when the ability is activated. Must be filled in to instantiate.
 
virtual void Disable (AbilityOwner abilityOwner)
 Run by the ability info object when the ability is deactivated. Doesn’t have to be filled in to instantiate.
 

Public Attributes

AbilityProjectile projectilePrefab
 Reference to the projectile prefab we want to spawn.
 
int objectCount = 1
 Amount of objects to spawn. Hardcoded to 1.
 

Additional Inherited Members

- Properties inherited from AbilityEffect
AbilityEffectType AbilityEffectType [get, set]
 Determines how the effect should be applied.
 

Member Function Documentation

◆ Apply()

override void SpawnAE.Apply ( AbilityOwner abilityOwner)

Instantiate the projectile prefab at the player’s position. (this is part of the problem. If you spawn a projectile inside the player it will just hit the player)

Parameters
abilityOwner

Member Data Documentation

◆ objectCount

int SpawnAE.objectCount = 1

Amount of objects to spawn. Hardcoded to 1.

◆ projectilePrefab

AbilityProjectile SpawnAE.projectilePrefab

Reference to the projectile prefab we want to spawn.


The documentation for this class was generated from the following file: