Jump to content

Grafzahl

Member
  • Content Count

    2
  • Joined

  • Last visited

  • Medals

Everything posted by Grafzahl

  1. I have a AI Heli that crashes somewhere around the map, after the crash should spawn loot around the Wreck... My Problem is that Arma spawns these earthern crates and destructions around a crashed chopper... the loot spawns under these crates and so its hard/not accessable. It would be possible to spawn the wreck together with the loot some meters around the actual wreck, but this wouldnt look realistic if you see the chopper crash, and cause its random, i dont know if there is a building or a tree near the crashsite. So is there a classname or something for these parts that are spawning by BIS_Effects_AirDestruction and BIS_Effects_AirDestructionStage2? Or could i somehow clean the area of the crashsite of any "vehicles", trees and so on?
  2. Hey Guys, iam getting crazy... currently i am spawning a AI Huey InAir (somewhere random over the map) together with a AI Pilot, then the Pilot should get some random coordinates as waypoint, fly there and crash the heli at the exact position of the waypoint. Currently the chopper + pilot are spawning fine, the pilot goes into "driver"-seat and starts flying to the given coordinates... but here comes the funny fact: Only if me (a player) (this script runs serverside on a dayz/namalsk-server) is near the chopper when it spawns... if iam just waiting at the coordinates where the chopper should fly to, he never arrives, if i then set myself to the spawnpoint of the chopper to look what he is doing, he is there, up in the air, just hovering...like he has no waypoint to fly to. If iam at the spawnlocation when the chopper spawns in, the chopper starts flying straight to the given position... but my next problem is, that i somehow dont the get chopper to crash or even land at the given coordinates... he just flys NEAR the coordinates (like 100m away), and then goes into hover again. I was reading alot about chopper crashs in the last days, but nothing seems to work in this case... here is my code right now: _crashwreck = createVehicle ["UH1H_DZ",[6234.31,8599.45,100], [], 0, "FLY"]; _crashwreck engineOn true; _crashwreck setspeedmode "normal"; _landingzone = createVehicle ["HeliHEmpty", _position, [], 0, "CAN_COLLIDE"]; _aigroup = createGroup west; "Survivor3_DZ" createUnit [getPos _crashwreck, _aigroup, "_helipilot=this;",1,"Private"]; _helipilot moveindriver _crashwreck; _helipilot assignAsDriver _crashwreck; [_helipilot] orderGetIn true; sleep 2; _wp = _aigroup addWaypoint [_position, 1]; _wp setWaypointType "GET OUT"; _wp setWaypointBehaviour "CARELESS"; _wp setWaypointCompletionRadius 200; _wp setWaypointStatements ["true", "_crashwreck flyInHeight -10; _crashwreck setHit ['mala vrtule', 1];_crashwreck land 'GET OUT';"]; _position should be a random position, but in my testcase its ever [6189.5889,11915.998,0]. As you can see, iam already spawning an invisible H at the Coordinates of the waypoint... and set the waypointStatements so that the heli should go down to -10 meters height, the tailrotor should be damages and the _crashwreck should land.... but nothing of this is happening :( Any Ideas why the Pilot is only flying to the coordinates when another player of "west" seems to be around? And what could i do about getting the heli to crash, or at least "land"....
×