+ Reply to Thread
Results 1 to 8 of 8

Thread: e 2 error

  1. #1
    Wirererer eduardo's Avatar
    Join Date
    Jan 2009
    Posts
    399

    Default e 2 error

    anyone know whats wrong with this


    Code:
    @outputs P R Y
    @persist Prop:entity Angles:angle
    interval(1)
    Prop = entity():isWeldedTo()
    Angles = Prop:angles()
    P = Angles:pitch()
    R = Angles:roll()
    Y = Angles:yaw()
    Prop:applyAngForce(P + ($P * 5))
    Prop:applyAngForce(R + ($R * 5))
    Prop:applyAngForce(Y + ($Y * 5))       
    
    #it gives me the error: No such function: entity:applyAngForce(number)
    #at line 9, char 6

  2. #2
    Wirererer taz_doh's Avatar
    Join Date
    May 2007
    Location
    Quebec
    Posts
    154

    Default Re: e 2 error

    its E:applyAngForce(A) so you need to use an angle
    so its
    Code:
    Angles=ang(P + ($P * 5),R + ($R * 5),Y + ($Y * 5))
    Prop:applyAngForce(Angle)
    or
    Code:
    Prop:applyAngForce(Angle+($Angle*5))
    but im not sure if this one work
    VIVE LE QUEBEC
    sorry if I write some non-existent words

  3. #3
    Wirererer Incompatible's Avatar
    Join Date
    Jul 2007
    Posts
    156

    Default Re: e 2 error

    Code:
    @outputs
    @persist Prop:entity Angles:angle
    interval(10)
    Prop = entity():isWeldedTo()
    Angles = Prop:angles()
    Prop:applyAngForce(Angles + ($Angles * 5))
    You could simplify it down a lot.

  4. #4
    Wirererer eduardo's Avatar
    Join Date
    Jan 2009
    Posts
    399

    Default Re: e 2 error

    this is going to be for a gyro cannon so technically in the end ill be adding the elevation of which the user is looking at and the bearing also so how do i specify in
    Prop:applyAngForce(Angles + ($Angles * 5))
    which angle that is going to be ergo i need it to be Pitch + Pitch + elevation in the end (shortened obviously)

  5. #5
    Wirererer eduardo's Avatar
    Join Date
    Jan 2009
    Posts
    399

    Default Re: e 2 error

    ok so with this one the plate just kinda flips and spazzes the main goal here is to make it so the pitch roll and yaw stay at 0 using applyAngleforce


    Code:
    @outputs P R Y
    @persist Prop:entity Angles:angle
    interval(1)
    Prop = entity():isWeldedTo()
    Angles = Prop:angles()
    P = Angles:pitch()
    R = Angles:roll()
    Y = Angles:yaw()
    Angles=ang(P + ($P * 5),R + ($R * 5),Y + ($Y * 5))
    Prop:applyAngForce(Angles)      
    
    #the plate just flips and spazzes
    how do i make it so it stays stable

    also in this line that you told me taz doh
    Angles=ang(P + ($P * 5),R + ($R * 5),Y + ($Y * 5))
    what does ang mean, is that normalization?
    Last edited by eduardo; 03-22-2009 at 01:41 PM. Reason: whut whut in teh butt

  6. #6
    Wirererer eduardo's Avatar
    Join Date
    Jan 2009
    Posts
    399

    Default Re: e 2 error

    bumped for halo video making

  7. #7
    I think I think too much -HP-'s Avatar
    Join Date
    Feb 2009
    Location
    Behind you with a very sharp knife.
    Posts
    2,466

    Default Re: e 2 error

    Quote Originally Posted by eduardo View Post
    bumped for halo video making
    For what?

    Halo video making?

  8. #8
    Wirererer eduardo's Avatar
    Join Date
    Jan 2009
    Posts
    399

    Default Re: e 2 error

    o its just something im making with fraps itll be a dual between two of my bots but i need a gun for it

+ Reply to Thread

Similar Threads

  1. normal commands E2 error or scrip error?!?!?!!?
    By oenmaster in forum Bug Reports
    Replies: 3
    Last Post: 01-17-2009, 08:08 AM
  2. Adv Dup Error
    By Captain Maim in forum Installation and Malfunctions Support
    Replies: 3
    Last Post: 10-26-2008, 11:29 AM
  3. Error
    By Avengermac in forum Installation and Malfunctions Support
    Replies: 3
    Last Post: 08-28-2007, 04:56 PM
  4. Nil Value Error
    By StealthAssassin in forum Installation and Malfunctions Support
    Replies: 4
    Last Post: 08-02-2007, 05:50 AM
  5. CPU Error..
    By mad_sprayer in forum Installation and Malfunctions Support
    Replies: 6
    Last Post: 03-30-2007, 05:23 PM

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