Difference between revisions of "Talk:Running Scripts On Arrows"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>Hawkmoth 101
imported>Shademe
(→‎Indecipherable Question: Use getProjectile)
 
(6 intermediate revisions by 2 users not shown)
Line 5: Line 5:
Nice, indeed! Thanks!
Nice, indeed! Thanks!
Homing arrows, here I come :)
Homing arrows, here I come :)
== Indecipherable Question ==


hello i need help i have the if (trigref.isammo) setup just like it says but with the disable and all the other ones it sitll thinks that magic is amm how do i fix this here is the script i have if ne1 can help:
hello i need help i have the if (trigref.isammo) setup just like it says but with the disable and all the other ones it sitll thinks that magic is amm how do i fix this here is the script i have if ne1 can help:


"scn actrigzoneSCR
 
scn actrigzoneSCR


ref trigref
ref trigref
Line 17: Line 20:
         trigref.disable
         trigref.disable
     endif
     endif
   end"
   end
 
:Please rewrite your question so we can understand it. I have ''absolutely no idea what you said''. Proper use of punctuation and capitalization so I can figure out where one sentence ends and another begins would be a wonderful start. Using real words (not "ne1") would be generally pleasant, too, as would something resembling correct spelling.
 
:Also, please use see [[Help:Wiki Editing Syntax Guide#Code Boxes|here]] for information on properly displaying script code, and please use <nowiki>~~~~</nowiki> to [[Help:Wiki Editing Syntax Guide#Signing a Page|sign your comments]]. Thank you.
:[[User:DragoonWraith|<span style="font-family: Oblivion, Daedric Runes; size=2;">D</span>ragoon <span style="font-family: Oblivion, Daedric Runes; size=2;">W</span>raith]] [[User_talk:DragoonWraith|<span style="font-family: Oblivion, Daedric Runes; size=2;">TALK</span>]] 00:48, 25 December 2008 (EST)
 
[[User:Hawkmoth 101|Hawkmoth 101]] 06:53, 26 December 2008 (EST) sorry i'm a bit new to this. Ok my problem is that my magic is still being disabled even with the use of the "trigref.isammo" command i am not sure why this is.
Here is the script:
 
scn actrigzoneSCR
ref trigref
begin ontriggermob
    set trigref to getActionRef
    if (trigref.isammo==1)
        trigref.disable
    endif
  end
 
If you can tell me what is wrong I would appreciate it.
 
:Hmm... I don't know. You could try using [[GetProjectileType|if ( trigref.GetProjectileType == 0 )]] instead, maybe that would work better?
 
:Other than that, I don't have any ideas. You might try asking on the {{Forums}}. Also, depending on what you're doing, it might be better to use [[GetFirstRef|GetFirst]]/[[GetNextRef|NextRef]] to walk through all of the projectiles and just delete arrows, instead of using the triggerzone - unless you want it to be in that specific area.
:[[User:DragoonWraith|<span style="font-family: Oblivion, Daedric Runes; size=2;">D</span>ragoon <span style="font-family: Oblivion, Daedric Runes; size=2;">W</span>raith]] [[User_talk:DragoonWraith|<span style="font-family: Oblivion, Daedric Runes; size=2;">TALK</span>]] 13:09, 26 December 2008 (EST)
 
: You cal also use OBSE 16's GetProjectile funtion - Returns the reference to the most recent projectile fired by the calling actor. Use ''actor.getProjectile 1'' to get the ref. - [[User:Shademe|shademe]] 21:49, 26 December 2008 (EST)

Latest revision as of 21:49, 26 December 2008

Dragoon Wraith TALK 20:31, 12 October 2006 (EDT): Oh man, thank you! This adds a lot of possibilities... Frozen Orb, here I come!


GBHis Nice, indeed! Thanks! Homing arrows, here I come :)

Indecipherable Question[edit source]

hello i need help i have the if (trigref.isammo) setup just like it says but with the disable and all the other ones it sitll thinks that magic is amm how do i fix this here is the script i have if ne1 can help:


scn actrigzoneSCR

ref trigref

begin ontriggermob

    set trigref to getActionRef
    if (trigref.isammo==1)
       trigref.disable
    endif
 end
Please rewrite your question so we can understand it. I have absolutely no idea what you said. Proper use of punctuation and capitalization so I can figure out where one sentence ends and another begins would be a wonderful start. Using real words (not "ne1") would be generally pleasant, too, as would something resembling correct spelling.
Also, please use see here for information on properly displaying script code, and please use ~~~~ to sign your comments. Thank you.
Dragoon Wraith TALK 00:48, 25 December 2008 (EST)

Hawkmoth 101 06:53, 26 December 2008 (EST) sorry i'm a bit new to this. Ok my problem is that my magic is still being disabled even with the use of the "trigref.isammo" command i am not sure why this is. Here is the script:

scn actrigzoneSCR

ref trigref

begin ontriggermob
    set trigref to getActionRef
    if (trigref.isammo==1)
       trigref.disable
    endif
 end

If you can tell me what is wrong I would appreciate it.

Hmm... I don't know. You could try using if ( trigref.GetProjectileType == 0 ) instead, maybe that would work better?
Other than that, I don't have any ideas. You might try asking on the Forums. Also, depending on what you're doing, it might be better to use GetFirst/NextRef to walk through all of the projectiles and just delete arrows, instead of using the triggerzone - unless you want it to be in that specific area.
Dragoon Wraith TALK 13:09, 26 December 2008 (EST)
You cal also use OBSE 16's GetProjectile funtion - Returns the reference to the most recent projectile fired by the calling actor. Use actor.getProjectile 1 to get the ref. - shademe 21:49, 26 December 2008 (EST)