Author Topic: Hurl Rock  (Read 326 times)

Legacy_Buddywarrior

  • Hero Member
  • *****
  • Posts: 512
  • Karma: +0/-0
Hurl Rock
« on: July 18, 2012, 05:21:05 am »


                I noticed a Hurl Rocks special ability, and I haven't been able to find anything in the Lexicon about it. I saw that the spell is located at X2_S1_hurlrock, but not sure how to trigger it. For example, when a player enters an OnEnter generic trigger, how can I trigger Hurl Rocks? Is it even possible? 
               
               

               
            

Legacy_ffbj

  • Hero Member
  • *****
  • Posts: 1097
  • Karma: +0/-0
Hurl Rock
« Reply #1 on: July 18, 2012, 05:32:16 am »


               That should be possible.  It's something, giants, clay golems, and probably other things have too. One way would be just to make an invisible, invulnerable, immobile creature, that could hurl rocks, and then have them just vaporize after a time, by taking away their immunuty and destroying them.   Cheesy, but easy. Or give them a short range perception so that once the pc gets a certain distance away the rocks stop falling.
               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Hurl Rock
« Reply #2 on: July 18, 2012, 05:57:36 am »


               the hurling rock is projectile VFX - you have to create placeable/creature that will cast spell with such projectile
               
               

               
            

Legacy_Pstemarie

  • Hero Member
  • *****
  • Posts: 4368
  • Karma: +0/-0
Hurl Rock
« Reply #3 on: July 30, 2012, 09:00:22 pm »


               Copy the script and modify it so that the target is GetEnteringObject() instead of GetSpellTargetObject() or GetSpellTargetLocation() - I forget which it uses. Then place the script in the OnEnter event of your trigger.

It might require a little more tweaking but you've got the general idea.

EDIT

Change line 28 to read 

     location lImpact = GetLocation(GetEnteringObject());   

instead of 

     location lImpact = GetSpellTargetLocation();
               
               

               


                     Modifié par Pstemarie, 30 juillet 2012 - 08:04 .
                     
                  


            

Legacy_Buddywarrior

  • Hero Member
  • *****
  • Posts: 512
  • Karma: +0/-0
Hurl Rock
« Reply #4 on: July 31, 2012, 12:38:20 am »


               Thanks guys. It looks like you can cast a spell using the spell number also.
ActionCastSpellAtLocation(775, lLoc, METAMAGIC_ANY,60, TRUE); where 775 is the spell Hurl Rock in the spells.2da