SP Fantasy Arcane Magic

Currently Viewing (Users: 0, Guests: 1)

Best answers
0
Allows 7 different magical powers (fire, fear, charm, web, slow, break weapon, and melt armor) to be assigned to hits from designated weapons. Adds 42 new "spell items" to shops that apply these powers to varying degrees.

The mod can be downloaded here: https://www.nexusmods.com/mountandblade2bannerlord/mods/2141?tab=files

There are some area of effect spells that I would like to give and indication of the area being effected. Something as simple as showing a sphere or circle in battle. Does anyone have an idea on how to do this? I tried creating a game entity sphere and assigning a particle effect, but no luck.

GameEntity gameEntity = GameEntity.CreateEmpty(scene);
gameEntity.AddSphereAsBody(center, radius, BodyFlags.Disabled);
Mesh mesh = Mesh.CreateMesh();
MatrixFrame boneLocalFrame = new MatrixFrame(Mat3.Identity, new Vec3(0f, 0f, 0f, -1f));
ParticleSystem particleSystem = ParticleSystem.CreateParticleSystemAttachedToEntity(particleEffectName, gameEntity, ref boneLocalFrame);