Results 1 to 9 of 9
  1. #1
    alistair4322's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    229
    Reputation
    14
    Thanks
    31
    My Mood
    Goofy

    Distance code...

    If my code is like this, how can I set the distance between this object and players?

    Code:
    CreateAbox(apos, angle)
    {
    	abox = spawn("script_model", apos );
    	abox setModel("com_bomb_objective");
    	abox.angles = angle;
    	abox Solid();
    	abox CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
    	wait 0.01;
    }

  2. #2
    justas1234's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    153
    Reputation
    10
    Thanks
    51
    My Mood
    Bored
    I Am Not Good At This But Do You Have Solid() Thread?

  3. #3
    alistair4322's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    229
    Reputation
    14
    Thanks
    31
    My Mood
    Goofy
    Quote Originally Posted by justas1234 View Post
    I Am Not Good At This But Do You Have Solid() Thread?
    It is actually in the included file...

  4. #4
    justas1234's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Posts
    153
    Reputation
    10
    Thanks
    51
    My Mood
    Bored
    My Fail!

  5. #5
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,802
    Reputation
    3165
    Thanks
    73,325
    My Mood
    Breezy
    Code:
    if(Distance(abox.origin, self.origin) <= 50){
    //Do some stuff here
    }
    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]

  6. #6
    alistair4322's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    229
    Reputation
    14
    Thanks
    31
    My Mood
    Goofy
    Quote Originally Posted by master131 View Post
    Code:
    if(Distance(abox.origin, self.origin) <= 50){
    //Do some stuff here
    }
    No effect...

  7. #7
    [WhA]4FunPlayin's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    Not here
    Posts
    757
    Reputation
    8
    Thanks
    169
    My Mood
    Lonely
    Code:
    while(1)
    {
    if(Distance(abox.origin, self.origin) <= 50){
    //Do some stuff here
    }
    wait 0.5;
    }
    And
    abox CloneBrushmodelToScriptmodel( level.airDropCrateCollision );
    is a fail, really fails.
    It will make your object just like a carepackages.. idfk to explain just don't use it unless you spawn a carepackage.

  8. #8
    alistair4322's Avatar
    Join Date
    Aug 2010
    Gender
    male
    Posts
    229
    Reputation
    14
    Thanks
    31
    My Mood
    Goofy
    Quote Originally Posted by master131 View Post
    Code:
    if(Distance(abox.origin, self.origin) <= 50){
    //Do some stuff here
    }
    abox.origin isn't right...

  9. #9
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,802
    Reputation
    3165
    Thanks
    73,325
    My Mood
    Breezy
    Replace it with apos then!
    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]

Similar Threads

  1. Replies: 37
    Last Post: 06-20-2006, 05:24 PM
  2. Pre-Regerstration - E3 Codes
    By Dave84311 in forum WarRock - International Hacks
    Replies: 67
    Last Post: 06-13-2006, 09:06 AM
  3. hi can any1 help me make or find a cheat code
    By CrUsHa in forum WarRock - International Hacks
    Replies: 3
    Last Post: 05-19-2006, 05:39 PM
  4. a Couple WPE Weapon codes?
    By phil823 in forum WarRock - International Hacks
    Replies: 16
    Last Post: 02-10-2006, 03:14 PM