Jump to content

Stormmy1950

Member
  • Content Count

    36
  • Joined

  • Last visited

  • Medals

Community Reputation

11 Good

1 Follower

About Stormmy1950

  • Rank
    Private First Class

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Stormmy1950

    AI Unit stop fire on player

    ok i think you have a couple of options then 1. you can swich side of the unit to civilian 2. you can set unit capture put this in initfield of unit: this setCaptive true; and when you want to undo the captive put this : this setCaptive false;
  2. for "_i" from 1 to 5 do { player removeMagazines "30Rnd_556x45_Stanag"; }; i dont know will this work i am not currently at my computer edit instad of this: removeMagazines use this: https://community.bistudio.com/wiki/removeMagazine
  3. Stormmy1950

    AI Unit stop fire on player

    then try this https://community.bistudio.com/wiki/disableAI
  4. Stormmy1950

    AI Unit stop fire on player

    try this _soldier setBehaviour "CARELESS"; also check this link: https://community.bistudio.com/wiki/setBehaviour
  5. @syrasia i did try that but then the dialog that i created opens before and when i spawn in , there nothing there Edit: nvm i just put the Sleep command and that work perfeclty.
  6. I have a question how to run script only once on first spawn. i have respawnOnStart = -1; in my Description.ext // i know this has nothing to do with running a script on first spawn this is only so i can spawn a character with out the map preview
  7. @Mr H. Apperently that was it i was copying from the forum and when i type it my self the it work Big thank you For helping me with this Moderator you are clear to lock the Topic Now ;D
  8. _objects = nearestObjects [Targets_50m,["Target_PopUp_Moving_90deg_F"],10]; _bool = !(_objects isEqualTo []); if(_bool) then { { deletevehicle _x; }forEach _objects; systemChat "Targets at 50m are deleted"; //_bool = false; } else { _Target1 = createVehicle ["Target_PopUp_Moving_90deg_F", Targets_50m modelToWorld [0, 2, 0], [], 0, "NONE"]; _Target2 = createVehicle ["Target_PopUp_Moving_90deg_F", Targets_50m modelToWorld [0, -2, 0], [], 0, "NONE"]; _Target3 = createVehicle ["Target_PopUp_Moving_90deg_F", Targets_50m modelToWorld [0, 6, 0], [], 0, "NONE"]; _Target4 = createVehicle ["Target_PopUp_Moving_90deg_F", Targets_50m modelToWorld [0, -6, 0], [], 0, "NONE"]; _Target1 setDir 270; _Target2 setDir 270; _Target3 setDir 270; _Target4 setDir 270; //_bool = true; systemChat "Targets at 50m Spawned"; }; This is what i have now and I get the error on Line 2 Invalid number in Expression.
  9. @Mr H. Sorry i am still haveing problems whit this can you tell me how do i get the empty array from your function that you gave me.
  10. @Mr H. Ty for that but how do i spawn them again so basicly i want to spawn and delete them X amout of times ? To sum it all up how to create a Toggle codition ?
  11. Ok i am currently trying to make simple spawning and despawning objects with a single ace interaction. My currently poblem is how to make a codition that checks distance between 2 objects and returns true or false This is what i have so far: _objects = nearestObjects [Targets_50m,["Target_PopUp_Moving_90deg_F"],10]; _bool = false; if(_bool) then { { deletevehicle _x; }forEach _objects; systemChat "Targets at 50m are deleted"; _bool = false; } else { _Target1 = createVehicle ["Target_PopUp_Moving_90deg_F", Targets_50m modelToWorld [0, 2, 0], [], 0, "NONE"]; _Target2 = createVehicle ["Target_PopUp_Moving_90deg_F", Targets_50m modelToWorld [0, -2, 0], [], 0, "NONE"]; _Target3 = createVehicle ["Target_PopUp_Moving_90deg_F", Targets_50m modelToWorld [0, 6, 0], [], 0, "NONE"]; _Target4 = createVehicle ["Target_PopUp_Moving_90deg_F", Targets_50m modelToWorld [0, -6, 0], [], 0, "NONE"]; _Target1 setDir 270; _Target2 setDir 270; _Target3 setDir 270; _Target4 setDir 270; _bool = true; systemChat "Targets at 50m Spawned"; };
  12. Stormmy1950

    Minefield not deleting

    @killzone_kid i am just saying that "MineBase" dosent work for me and "mineBase" works. why i really dont know but hey it works and i am glad for that
  13. Stormmy1950

    Minefield not deleting

    @killzone_kid yet somehow made diffrence. so this works: _list = player nearObjects ["mineBase", 100]; { _x setDamage 1; //deleteVehicle _x; }forEach _list; and this dosent work: _list = player nearObjects ["MineBase", 100]; { _x setDamage 1; //deleteVehicle _x; }forEach _list;
  14. Stormmy1950

    Minefield not deleting

    OK it seams i fix it instead of "MineBase" i have used "mineBase" and that seams to be fix to this problem. Thanks everybody who helped @Mr H. and @killzone_kid
×