+ Reply to Thread
Results 1 to 5 of 5

Thread: Creating the E2 built in ranger at a holo?

  1. #1
    Wire Amateur Mr G's Avatar
    Join Date
    Aug 2010
    Posts
    36

    Default Creating the E2 built in ranger at a holo?

    Title mainly explains it all, but I'm trying to make a bullet explode when the ranger hits the world, the ranger is currently at the chip I think. And I need it to be at the holo

    Code:
    Ranger1 = rangerHull(50,holoEntity(8):boxSize())
    
    R1Dist = Ranger1:distance()
    Would that even work? I believe rangerHull creates... a box


    UPDATE

    Heres the thing I use ATM, it doesnt seem to ignore my props, even tho I filtered it. Also just scales mid air...

    Code:
    if(findCanQuery()) {
        findIncludePlayerProps(owner())
    Props = findToArray()
    }
        holoAng(8,(MFP-holoEntity(8):pos()):toAngle())
        rangerFilter(Props)
        Ranger1 = rangerOffsetHull(50,holoEntity(8):pos(),holoEntity(8):boxSize(),vec(1,1,1))
    
    R1Dist = Ranger1:distance()
    
    if(R1Dist < 50 & LockFire) {
        Stop = 1
        Scale += 0.8
        holoMaterial(8,"models/effects/splode_sheet")
        holoScale(8,vec(1 + Scale, 1 + Scale, 1 + Scale))
    }
    Last edited by Mr G; 09-02-2010 at 11:09 AM.

  2. #2
    billywitchdoctor.com Whosdr's Avatar
    Join Date
    Dec 2008
    Posts
    2,300

    Default Re: Creating the E2 built in ranger at a holo?

    It's not filtering your props as you didn't execute a search. Put before Props = and after the findIncludePlayerProps...
    findByClass("*")
    .siht daer ot gniyrt emit detsaw ev'uoY

  3. #3
    Wire Amateur Mr G's Avatar
    Join Date
    Aug 2010
    Posts
    36

    Default Re: Creating the E2 built in ranger at a holo?

    Code:
    if(findCanQuery()) {
        findIncludePlayerProps(owner())
        findByClass("*")
    Props = findToArray()
    }
        holoAng(8,(MFP-holoEntity(8):pos()):toAngle())
        rangerFilter(Props)
        Ranger1 = rangerOffsetHull(50,holoEntity(8):pos(),holoEntity(8):boxSize(),vec(1,1,1))
    
    R1Dist = Ranger1:distance()
    
    if(R1Dist < 50 & LockFire) {
        Stop = 1
        Scale += 0.8
        holoColor(8,vec(255,100,100))
        holoMaterial(8,"models/effects/splode_sheet")
        holoScale(8,vec(1 + Scale, 1 + Scale, 1 + Scale))
        timer("ExplodeAway",1000)
    }
    Nope...

  4. #4
    Wirererer holy knife's Avatar
    Join Date
    Feb 2010
    Posts
    224

    Default Re: Creating the E2 built in ranger at a holo?

    Quote Originally Posted by Mr G View Post
    Code:
    if(findCanQuery()) {
        findIncludePlayerProps(owner())
        findByClass("*")
    Props = findToArray()
    }
        holoAng(8,(MFP-holoEntity(8):pos()):toAngle())
        rangerFilter(Props)
        Ranger1 = rangerOffsetHull(50,holoEntity(8):pos(),holoEntity(8):boxSize(),vec(1,1,1))
    
    R1Dist = Ranger1:distance()
    
    if(R1Dist < 50 & LockFire) {
        Stop = 1
        Scale += 0.8
        holoColor(8,vec(255,100,100))
        holoMaterial(8,"models/effects/splode_sheet")
        holoScale(8,vec(1 + Scale, 1 + Scale, 1 + Scale))
        timer("ExplodeAway",1000)
    }
    Nope...
    Code:
        Ranger1 = rangerOffsetHull(50,holoEntity(8):pos(),holoEntity(8):boxSize(),vec(1,1,1))
    You have the function wrong:
    Code:
    Ranger1 = rangerOffsetHull(Dist,Pos,Dir,Size)

  5. #5
    Wire Amateur Mr G's Avatar
    Join Date
    Aug 2010
    Posts
    36

    Default Re: Creating the E2 built in ranger at a holo?

    Gravediggers gonna dig.

+ Reply to Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
proceed-collector
proceed-collector
proceed-collector
proceed-collector
linguistic-parrots
linguistic-parrots
linguistic-parrots
linguistic-parrots