Talk:GetProjectileType

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search

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)