Skip to content

Placeables casting spells

Is there a way to make a placeable cast a spell? I've been assigning ActionCastFakeSpellAtObject and ActionCastSpellAtObject to a placeable, to no avail. The funny thing is that I get the sound of the spell being cast, but not the visual. Any idea on what's going on? The placeable is non-static.

Comments

  • DazDaz Member Posts: 127
    What's your script?

    This works fine for me:
    AssignCommand(oPlaceable, ActionCastSpellAtLocation(SPELL_FIREBALL, locTarget, METAMAGIC_ANY, TRUE, PROJECTILE_PATH_TYPE_BALLISTIC));
    
  • gpeddinogpeddino Member Posts: 51
    edited September 2019
    Thanks, that worked! I did some tests and I noticed that the problem was the spell I was using: Magic Missile (I changed it to Fireball and it worked perfectly). That's weird to me. Is there a chance that only a few spells will work with placeables?

    Edit: nevermind, I just found the info I need in the Lexicon. I was trying to use another placeable as the target, and the function demands another creature or the PC as the target.
    Post edited by gpeddino on
Sign In or Register to comment.