LordNiggle Posted January 21, 2020 Share Posted January 21, 2020 Looking through both the dragonfly.lua & dragonflybrain.lua I couldnt seem to find where the dragonfly gets its ability to attack while it's still pursuing you. I was hoping I could apply this feature to a few other mobs to sort of just test and **** around with it for fun. Any help/thoughts? Link to comment Share on other sites More sharing options...
Illumina Posted January 22, 2020 Share Posted January 22, 2020 The only reason i could find is the fact she's the only one who her attack animation is just swinging her arm while her wings are still moving, so since she's flying she can just attack while moving, pigs and others attack animations require the entity to be standing since there's no animation of the mob attacking while walking. If a pig could attack while moving he would be just sliding. Link to comment Share on other sites More sharing options...
WoodieMain45684 Posted January 22, 2020 Share Posted January 22, 2020 This might be something that should be on mod help but to my knowledge it's caused by dragonfly NOT possessing a line of code other mobs have. Both of these are part of each mobs' stategraph files (SGpig.lua and SGdragonfly.lua). As you can see dragonfly lacks inst.Physics:Stop(). I think this is what prevents enemies from moving while attacking like dragonfly does, but I could be wrong. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.
Please be aware that the content of this thread may be outdated and no longer applicable.