Results 1 to 4 of 4
  1. #1
    TrollerCoaster's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    I am a fish
    Posts
    633
    Reputation
    61
    Thanks
    798

    [Solved]Syntax of SetPoint?

    Not even Zeroy's huge CoD 4 script reference database contains it, and SetPoint confuses me.

    If you don't know, it looks something like this:
    Code:
    			player.perk1Icon = createIcon( "specialty_bulletdamage_upgrade", 40, 40 );
    			player.perk1Icon setPoint( "BOTTOM RIGHT", "BOTTOM RIGHT", -120, -300 );
    			player.perk1Icon.alpha = 0;
    			player.perk1Icon.hideWhenInMenu = true;
    			player.perk1Icon.foreground = true;
    So what's the syntax of SetPoint?

  2. #2
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,802
    Reputation
    3165
    Thanks
    73,318
    My Mood
    Breezy
    setPoint( XAlign, YAlign, XOffset, YOffset )

    Example:
    setPoint( "BOTTOMRIGHT", "BOTTOMRIGHT", 0, 0 );
    setPoint( "CENTER", "CENTER", 0, 0 );

    In your example:
    setPoint( "BOTTOMRIGHT", "BOTTOMRIGHT", -120, -300 );
    It will place your icon at the bottom right with a XOffset of -120 and YOffset of -300 which means it will move it towards the left 120 pixels and 300 pixels towards the top. The negative sign makes it go in the opposite direction of the chosen position. (Opposite of right is left and opposite of bottom is top)
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.6.1 *NEW* Windows 10 compatible!
    A powerful and advanced injector in a simple GUI.
    Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

    Minion Since: 13th January 2011
    Moderator Since: 6th May 2011
    Global Moderator Since: 29th April 2012
    Super User/Unknown Since: 23rd July 2013
    'Game Hacking' Team Since: 30th July 2013

    --My Art--
    [Roxas - Pixel Art, WIP]
    [Natsu - Drawn]
    [Natsu - Coloured]


    All drawings are coloured using Photoshop.

    --Gifts--
    [Kyle]

  3. The Following User Says Thank You to master131 For This Useful Post:

    TrollerCoaster (06-10-2011)

  4. #3
    TrollerCoaster's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    I am a fish
    Posts
    633
    Reputation
    61
    Thanks
    798
    Quote Originally Posted by master131 View Post
    setPoint( XAlign, YAlign, XOffset, YOffset )

    Example:
    setPoint( "BOTTOMRIGHT", "BOTTOMRIGHT", 0, 0 );
    setPoint( "CENTER", "CENTER", 0, 0 );
    Edit: Nvm, you added your edit, thanks

  5. #4
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,802
    Reputation
    3165
    Thanks
    73,318
    My Mood
    Breezy
    /marked as solved
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.6.1 *NEW* Windows 10 compatible!
    A powerful and advanced injector in a simple GUI.
    Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

    Minion Since: 13th January 2011
    Moderator Since: 6th May 2011
    Global Moderator Since: 29th April 2012
    Super User/Unknown Since: 23rd July 2013
    'Game Hacking' Team Since: 30th July 2013

    --My Art--
    [Roxas - Pixel Art, WIP]
    [Natsu - Drawn]
    [Natsu - Coloured]


    All drawings are coloured using Photoshop.

    --Gifts--
    [Kyle]