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?
Hurl Rock
Débuté par
Buddywarrior
, juil. 18 2012 04:21
#1
Posté 18 juillet 2012 - 04:21
#2
Posté 18 juillet 2012 - 04:32
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.
#3
Posté 18 juillet 2012 - 04:57
the hurling rock is projectile VFX - you have to create placeable/creature that will cast spell with such projectile
#4
Posté 30 juillet 2012 - 08:00
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();
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 .
#5
Posté 30 juillet 2012 - 11:38
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
ActionCastSpellAtLocation(775, lLoc, METAMAGIC_ANY,60, TRUE); where 775 is the spell Hurl Rock in the spells.2da





Retour en haut






