Jump to content

yyccccc

Member
  • Content Count

    21
  • Joined

  • Last visited

  • Medals

Posts posted by yyccccc


  1. Hi Mandoble, when I use this code to ai launcher, camera does not follow the missile ,what is wrong, please help me.

    this addeventhandler ["fired",{_this execvm"cam.sqf"}]

    _projectile = nearestobject [_this select 0,_this select 4];

    setacctime 0.5;

    _camera = "camera" camCreate (getpos _projectile);

    _camera cameraeffect ["internal", "back"];

    while{alive _projectile && alive _camera}do

    {

    _camera camSetTarget _projectile;

    _camera camSetRelPos [0,-1.55,0.08];

    _camera camCommit 0;

    sleep 0.001;

    };

    if(alive _camera)then{sleep 1.9};

    _camera cameraeffect ["terminate", "back"];

    camdestroy _camera;

    setacctime 1;

    exit


  2. If you want AI to land an Aircraft at an airport use LandAt instead.

    LandAT- BIKI

    plane landAt 1

    Utes:

    0 = There is only one airport

    Chernarus:

    0 = Airport NorthWest close to Grishno

    1 = Airport NorthEast close to Kranostav

    2 = Airport SouthWest close to Balota

    Planes approach all airports from SouthEast

    What is the script ,if I press F2 ,there is a command "landat 0" in command menu?


  3. Code Sample

    _projectile = nearestobject [_this select 0,_this select 4];

    setacctime 0.5;

    _camera = "camera" camCreate (getpos _projectile);

    _camera cameraeffect ["internal", "back"];

    while{alive _projectile && alive _camera}do

    {

    _camera camSetTarget _projectile;

    _camera camSetRelPos [0,-13,1.2];

    _camera camCommit 0;

    sleep 0.001;

    };

    if(alive _camera)then{sleep 1};

    _camera cameraeffect ["terminate", "back"];

    camdestroy _camera;

    setacctime 1;

    Edit: Also remember this in the unit's init line:

    Code Sample

    this addeventhandler ["fired",{_this execVM "cam.sqf"}]

    question 1 : sometimes the camera appearing at the sea, what is the matter?

    question 2 : when I play as a M1A1 gunner how can I stop friendlyAi from using the camera follow script?

×