Difference between revisions of "Talk:GetProjectileType"

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search
imported>SpookyFX
(New page: I will edit this this example unless some tells me I am incorrect. My impression is that setting ref to apple is no longer required as of OBSE17. That is what I was told in the forums any...)
 
imported>DragoonWraith
 
Line 1: Line 1:
I will edit this this example unless some tells me I am incorrect.
I will edit this this example unless some tells me I am incorrect.
My impression is that setting ref to apple is no longer required as of OBSE17.
My impression is that setting ref to apple is no longer required as of OBSE17.
Line 7: Line 6:
So this:  
So this:  


ref rProj
ref rProj
...
...
set rProj to Apple
set rProj to Apple
set rProj to (GetFirstRef 34 1)
set rProj to (GetFirstRef 34 1)
Label
Label
if rProj
if rProj
    if (rProj.GetProjectileType == 0) && (rProj.GetProjectileSource == TriggerHappyFan)
    if (rProj.GetProjectileType == 0) && (rProj.GetProjectileSource == TriggerHappyFan)
        rProj.SetPlayerProjectile
        rProj.SetPlayerProjectile
    else
    else
        set rProj to Apple
        set rProj to Apple
        set rProj to GetNextRef
        set rProj to GetNextRef
        Goto
        Goto
    endif
    endif
endif
endif




I will change to this:
I will change to this:


ref rProj
ref rProj
...
...
set rProj to (GetFirstRef 34 1)
set rProj to (GetFirstRef 34 1)
Label
Label
if rProj
if rProj
    if (rProj.GetProjectileType == 0) && (rProj.GetProjectileSource == TriggerHappyFan)
    if (rProj.GetProjectileType == 0) && (rProj.GetProjectileSource == TriggerHappyFan)
        rProj.SetPlayerProjectile
        rProj.SetPlayerProjectile
    else
    else
        set rProj to GetNextRef
        set rProj to GetNextRef
        Goto
        Goto
    endif
    endif
endif
endif
 
:Correct, as far as I know. However, please do be sure to use correct Wiki mark-up and style here - for example, code blocks must start each line (including blanks) with a space, and we typically do indents with two spaces, not four (though I realize this wasn't the case here when you started). Thanks, and I greatly appreciate your taking the initiative to update something you noticed was wrong. We need more people who will do that.
:[[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>]] 21:56, 10 August 2010 (EDT)

Latest revision as of 20:56, 10 August 2010

I will edit this this example unless some tells me I am incorrect. My impression is that setting ref to apple is no longer required as of OBSE17. That is what I was told in the forums anyway.


So this:

ref rProj
...
set rProj to Apple
set rProj to (GetFirstRef 34 1)
Label
if rProj
    if (rProj.GetProjectileType == 0) && (rProj.GetProjectileSource == TriggerHappyFan)
        rProj.SetPlayerProjectile
    else
        set rProj to Apple
        set rProj to GetNextRef
        Goto
    endif
endif


I will change to this:

ref rProj
...
set rProj to (GetFirstRef 34 1)
Label
if rProj
    if (rProj.GetProjectileType == 0) && (rProj.GetProjectileSource == TriggerHappyFan)
        rProj.SetPlayerProjectile
    else
        set rProj to GetNextRef
        Goto
    endif
endif
Correct, as far as I know. However, please do be sure to use correct Wiki mark-up and style here - for example, code blocks must start each line (including blanks) with a space, and we typically do indents with two spaces, not four (though I realize this wasn't the case here when you started). Thanks, and I greatly appreciate your taking the initiative to update something you noticed was wrong. We need more people who will do that.
Dragoon Wraith TALK 21:56, 10 August 2010 (EDT)