Results 1 to 9 of 9
  1. #1
    denis200191's Avatar
    Join Date
    Jan 2015
    Gender
    male
    Posts
    100
    Reputation
    10
    Thanks
    10

    Question cursorTarget for DayZ SA

    tell me. If an alternative to the command "cursorTarget" for DayZ standalone. I'm trying to do something similar to AIM

  2. #2
    Mizzle420420's Avatar
    Join Date
    Feb 2013
    Gender
    male
    Location
    Korriban
    Posts
    838
    Reputation
    18
    Thanks
    1,096
    My Mood
    Twisted
    You can use screen to world to get the center of your screen, not exactly the same as cursor target, but close.
    Code:
     _pos = screenToWorld [0.5,0.5];

  3. #3
    denis200191's Avatar
    Join Date
    Jan 2015
    Gender
    male
    Posts
    100
    Reputation
    10
    Thanks
    10
    OK. I will develop

  4. #4
    Mizzle420420's Avatar
    Join Date
    Feb 2013
    Gender
    male
    Location
    Korriban
    Posts
    838
    Reputation
    18
    Thanks
    1,096
    My Mood
    Twisted
    Quote Originally Posted by denis200191 View Post
    OK. I will develop
    Cool let me know how it goes.

  5. #5
    denis200191's Avatar
    Join Date
    Jan 2015
    Gender
    male
    Posts
    100
    Reputation
    10
    Thanks
    10
    _wPos = screenToWorld [0.5,0.5];
    _pos = [(_wpos select 0) + random 5, (_wpos select 1) + random 5, 5];
    _bullet = "B_22_Ball" createvehiclelocal _pos;
    _bullet setVelocity [0, 0, -50000];

  6. #6
    Mizzle420420's Avatar
    Join Date
    Feb 2013
    Gender
    male
    Location
    Korriban
    Posts
    838
    Reputation
    18
    Thanks
    1,096
    My Mood
    Twisted
    Quote Originally Posted by denis200191 View Post
    _wPos = screenToWorld [0.5,0.5];
    _pos = [(_wpos select 0) + random 5, (_wpos select 1) + random 5, 5];
    _bullet = "B_22_Ball" createvehiclelocal _pos;
    _bullet setVelocity [0, 0, -50000];
    Try This

    Code:
    _CursorPos = screenToWorld [0.5,0.5];
    _CursorTarget = nearestObjects [_CursorPos, ["SurvivorBase"], 20];
    {
    	_CursorTargetPos = getPos _x;
    	_BulletPos = [(_CursorTargetPos select 0) + random 5, (_CursorTargetPos select 1) + random 5, 5];
    	_Bullet = "B_22_Ball" createvehiclelocal _BulletPos; 
    	_Bullet setVelocity [0, 0, -50000];
    } foreach _CursorTarget;
    You can reduce the range it detects targets in by changing that number 20 to maybe like 5 or 10 if you need it to be more precise.
    Last edited by Mizzle420420; 11-12-2015 at 08:11 AM.

  7. The Following User Says Thank You to Mizzle420420 For This Useful Post:

    denis200191 (11-12-2015)

  8. #7
    Mizzle420420's Avatar
    Join Date
    Feb 2013
    Gender
    male
    Location
    Korriban
    Posts
    838
    Reputation
    18
    Thanks
    1,096
    My Mood
    Twisted
    CursorTarget is disabled (commented out probably) in sa, you might be able to re-enable it through a .dll or some other memory manipulation.

  9. The Following User Says Thank You to Mizzle420420 For This Useful Post:

    Black (12-08-2015)

  10. #8
    denis200191's Avatar
    Join Date
    Jan 2015
    Gender
    male
    Posts
    100
    Reputation
    10
    Thanks
    10
    thanks for the advice. Thread can be closed

  11. #9
    Black's Avatar
    Join Date
    Jan 2012
    Gender
    male
    Location
    Dave's Heart and/or Arun's Ballsack
    Posts
    3,463
    Reputation
    816
    Thanks
    2,684
    My Mood
    Fine
    Closed upon request.

    /Closed

Similar Threads

  1. [Info] Every Single ClassName for DayZ [Banned/Unbanned] (Vehicles/Weapons/Ammo/Items/Equip)
    By lockdown6435 in forum DayZ Mod & Standalone Hacks & Cheats
    Replies: 111
    Last Post: 12-27-2012, 05:17 PM
  2. [Help] working and undetected bypass for DayZ 1.7.2.5?
    By SeLeR in forum DayZ Mod & Standalone Hacks & Cheats
    Replies: 8
    Last Post: 09-04-2012, 10:29 PM
  3. Need an Arma2 OA key for DayZ FAST!
    By alexcon92 in forum Buying Accounts/Keys/Items
    Replies: 0
    Last Post: 08-31-2012, 05:05 PM
  4. Looking for DayZ skins
    By ReconX45 in forum DayZ Mod & Standalone Hacks & Cheats
    Replies: 2
    Last Post: 08-26-2012, 02:40 PM
  5. Anyone in for DayZ?
    By ZeroTroubles in forum General
    Replies: 21
    Last Post: 08-22-2012, 04:04 PM