User Tag List

Results 1 to 6 of 6

Thread: Expression doesn't work

  1. #1
    No Products Registered

    Join Date
    Jun 2006
    Posts
    289
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Expression doesn't work

    Hi

    Could you tell me why this:
    32*(Angle( "Player" )/360)
    gives me value 0?

  2. #2
    No Products Registered

    Join Date
    Sep 2006
    Location
    Germany
    Posts
    861
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Expression doesn't work

    lets say angle = 23°

    23/360 = 0,0638 = 0 *32 = 0

    makes sense

    EDIT:

    32*(23/360.0) = 2.04444

    Is that what you are looking for ?

  3. #3
    Clickteam Clickteam
    Jeff's Avatar
    Join Date
    Jun 2006
    Location
    Battle Ground Washington
    Posts
    11,825
    Mentioned
    8 Post(s)
    Tagged
    2 Thread(s)

    Re: Expression doesn't work

    You need to get it into decimal mode

    just change 360 to 360.0

  4. #4
    No Products Registered

    Join Date
    Jun 2006
    Posts
    289
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Expression doesn't work

    Jeff: It works now, but it returns a decimal value. Can I get only a whole number without decimals?

  5. #5
    No Products Registered

    Join Date
    Apr 2008
    Location
    Germany
    Posts
    44
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Expression doesn't work

    there is an int() function in the special tab.
    Convert > Float to Integer

  6. #6
    No Products Registered

    Join Date
    Jun 2006
    Posts
    289
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Expression doesn't work

    Thank you very much

Similar Threads

  1. Why doesn't this work?
    By LB in forum File Archive
    Replies: 1
    Last Post: 20th June 2010, 05:59 PM
  2. Vitalize doesn't work on FF ?
    By Pyrasia in forum Vitalize
    Replies: 7
    Last Post: 24th February 2009, 11:20 PM
  3. Why doesn't this work?
    By kungsangun in forum File Archive
    Replies: 8
    Last Post: 17th December 2008, 05:54 PM
  4. Why doesn't this work?
    By kungsangun in forum File Archive
    Replies: 5
    Last Post: 8th July 2006, 01:37 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •