Class "EntityNPC"
Last updated
Was this helpful?
Last updated
Was this helpful?
{: .abp .tooltip .badge }
{: .abp .tooltip .badge }
{: .abp .tooltip .badge }
{: .abp .tooltip .badge }
fire a number of projectiles, optionally targeting the player direction is randomized, or slightly randomized when targeting the player FallingAccelModifier can be used to make projectiles fall faster to the ground returns a pointer to the projectile spawned last (useful e.g. when NumProjectiles=1)
Used to redirect close door enemies to any enemies for friendly npcs.
???- note "Notes" This will return the boss color idx reduced by 1. To get the actual color as set in bosscolors.xml, add +1 to the result.
???- note "Notes" A list of Champion colors can be found here : ChampionColorIdx
if there are no modifiers (best friend) this will return the player
For entities with unique death animation, like Flush! vs poop enemies.
Forces a non champion to become a champion, resets hp to max hp.
???- note "Notes" Hard to use because there are millions of possible seeds to input here.Use Morph() to change the champion Color instead!
???- example "Example Code" This code turns an entity into a gaper.
Used to identify multichunks groups.
general usage ints for ai_
same as m_I1
parent entity, for multi-entity NPCs like Larry Jr.
projectiles can fire again when it reaches 0
>0: projectile will be fired in n frames
general usage for ai_* functions, initialized to (0,0)
like m_V1, in case we need two of those
{: .abp .tooltip .badge }
{: .abp .tooltip .badge }
{: .abp .tooltip .badge }
{: .abp .tooltip .badge }
{: .abp .tooltip .badge }
{: .abp .tooltip .badge }
{: .abp .tooltip .badge }
{: .abp .tooltip .badge }
{: .abp .tooltip .badge }
{: .abp .tooltip .badge }
{: .abp .tooltip .badge }
{: .abp .tooltip .badge }
Morph the current entity into another one. can be used to turn the entity into a champion. Use :::lua -1
to turn it into a regular entity. A list of Champion colors can be found here :
{: .abp .tooltip .badge }
{: .abp .tooltip .badge }
{: .abp .tooltip .badge }
{: .abp .tooltip .badge }
{: .abp .tooltip .badge }
{: .static .tooltip .badge } {: .abp .tooltip .badge }
{: .abp .tooltip .badge }
{: .abp .tooltip .badge }
{: .abp .tooltip .badge }
{: .abp .tooltip .badge }
{: .abp .tooltip .badge }
{: .abp .tooltip .badge }
{: .abp .tooltip .badge }
{: .abp .tooltip .badge }
{: .abp .tooltip .badge }
{: .abp .tooltip .badge }
{: .abp .tooltip .badge }
{: .abp .tooltip .badge }
{: .abp .tooltip .badge }
{: .abp .tooltip .badge }
{: .abp .tooltip .badge }