Jump to content

Solex_nl

Member
  • Content Count

    7
  • Joined

  • Last visited

  • Medals

Posts posted by Solex_nl


  1. http://www.armaholic.com/page.php?id=1801

    Make the unit keep standing:

    Code:

    this setunitpos "up"

    ----------------------------------------------------------

    Make the unit crouch:

    Code:

    this setunitpos "middle"

    ----------------------------------------------------------

    Make the unit keep proning:

    Code:

    this setunitpos "down"

    ----------------------------------------------------------

    Make a unit stand still:

    Code:

    dostop this

    or

    Code:

    this disableAI "MOVE"


  2. ; ****************************************************************
    ; Script file for Armed Assault
    ; Updated for Arma 2 Zu-23 by Recoilless
    ; Created by: SUPR3ME KILL3R
    ; Thanks to Arma Edit
    ; ****************************************************************
    
    
    _K = _this select 0
    _Target = _this select 1
    _radius = _this select 2
    _altitude = _this select 3
    
    #Flakloop
    
    _a= getpos _Target select 0
    _b= getpos _Target select 1
    _c= getpos _Target select 2
    
    _gap=random _radius
    _direction=random 360
    
    _x = _a +((cos _direction)*_gap)
    _y = _b +((sin _direction)*_gap)
    _z = _c + _altitude - _radius + random (_radius*2)
    
    _gap2=random _radius
    _direction2=random 360
    
    _xx = _a +((cos _direction2)*_gap2)
    _yy = _b +((sin _direction2)*_gap2)
    _zz =_c + _altitude - _radius + random (_radius*2)
    
    _gap3=random _radius
    _direction3=random 360
    
    _xxx = _a +((cos _direction3)*_gap3)
    _yyy = _b +((sin _direction3)*_gap3)
    _zzz = _c + _altitude - _radius + random (_radius*2)
    
    _gap4=random _radius
    _direction4=random 360
    
    _xxxx = _a +((cos _direction4)*_gap4)
    _yyyy = _b +((sin _direction4)*_gap4)
    _zzzz = _c + _altitude - _radius + random (_radius*2)
    
    _K disableAI "Target"
    _K disableAI "AutoTarget"
    _K doWatch [_x,_y,_z]
    ~0.5
    _K setVehicleAmmo 1
    _K fire (weapons _K select 0)
    _K doWatch [_xx,_yy,_zz]
    ~0.5
    _K fire (weapons _K select 0)
    _K doWatch [_xxx,_yyy,_zzz]
    ~0.5
    _K fire (weapons _K select 0)
    _K doWatch [_xxxx,_yyyy,_zzzz]
    ~2
    goto "Flakloop"
    
    exit

    This one copies from my SQS


  3. Hello all!

    I have a question about how to make the AI throw a smoke grenade.

    <Asked it also on the Armaholic forum but they don't know (yet)>

    http://www.armaholic.com/forums.php?m=posts&q=6852&n=last#bottom

    anyway,

    I have a pilot named PilotAI with a red smoke handgrenade and making him walk, on one of his waypoints:

    PilotAI fire ["throw","SmokeShellRed","SmokeShellRed"]

    That doesnt work.

    PilotAI fire "SmokeShellRedMuzzle"

    Doesnt work either.

    Does anybody know how to get it to work?

    Thanks

    Alex.

×