A_SharpSpin

From SRB2 Wiki
Jump to navigation Jump to search
This article or section is incomplete. It doesn't have all of the necessary core information on this topic. Please help the SRB2 Wiki by finishing this article.
This article or section is outdated and has not been fully updated to reflect the current version of SRB2.

Please help the Wiki by correcting or removing any misinformation, as well as adding any new information to the page.

To do
Rewrite description for 2.2.0

A_SharpSpin is an action which is used as the thinker for the Spincushion's spin attack. The actor will continuously spin anti-clockwise (requires the action to be called over multiple states for this to work), while chasing towards the target (Speed sets the actor's speed). Each time this action is used, the actor's threshold is reduced by 1. When the actor's threshold reaches 0, or the actor doesn't have a target, the actor will go to its SpawnState, setting it to use A_Look (with Var1 = 1). ReactionTime sets the actor's reaction time for when it goes back to SpawnState. If the actor is dead, the actor goes to its DeathState. Note that if you want to set an Object's threshold value, you will need a Lua script, since the threshold value cannot be modified via SOC.

Object property Use
SpawnState Goes to this state when threshold = 0
DeathState Goes to this state if the actor is dead
ReactionTime Sets the actor's reaction time for when it goes back to SpawnState
Speed Speed

  Actions – Enemy thinkers [view]
A_BuzzFlyA_CrawlaCommanderThinkA_DetonChaseA_EggShieldA_FaceStabChaseA_FaceStabRevA_FaceStabHurlA_FaceStabMissA_StatueBurstA_GuardChaseA_HoodThinkA_HoodFallA_JetbThinkA_JetChaseA_JetgShootA_JetgThinkA_JetJawChompA_JetJawRoamA_MinusCheckA_MinusDiggingA_MinusPopupA_PointyThinkA_SharpChaseA_SharpSpinA_SharpDecelA_SkimChaseA_SnailerThinkA_VultureCheckA_VultureVtol