Hi Folks,
My other "sim".
For those interested - just how I enjoy ArmA - again - it's not really a scripted game - just a sandbox that provides terrains and assets - where you design the mission/campaign.
My opening sequence for a mission I'm making.
Just an example of the scripting language - this facilitates the crash shown in the video:
Regards,
Scott
My other "sim".
For those interested - just how I enjoy ArmA - again - it's not really a scripted game - just a sandbox that provides terrains and assets - where you design the mission/campaign.
My opening sequence for a mission I'm making.
Just an example of the scripting language - this facilitates the crash shown in the video:
Code:
//==========================// // Helicopter Crash Script // //==========================// // Author: scottb613 // File: SCOheliCrash.sqf // Note: Only tested in single player. // Given: "_heli" must be set to the variable name given to the helicopter to be crashed. // Given: Intended use - fired by trigger ===>>> [] execVM "Scripts\SCOheliCrash.sqf"; //=============================================================================================// //=============================================================================================// // Set to variable name assigned to helicopter private _heli = slick1; //- //private _groupMembers = units _heli; // Sound Explosion playSound3D ["a3\sounds_f\weapons\explosion\explosion_satchel1.wss", player, true, (_heli getPos [15, getDir _heli]) vectorAdd [0, 0, 5], 5, 1, 0]; //-- // Helicopter Setup _heli setDamage .98; _heli setHitPointDamage ["HitHRotor",1]; _heli setHitPointDamage ["HitVRotor",.95]; _heli setHitPointDamage ["HitEngine",.99]; _heli allowDamage false; //-- // Particle Effect Fire private _ps1 = "#particlesource" createVehicleLocal (position _heli); _ps1 attachto [_heli, [0,0,0]]; _ps1 setParticleParams [ ["\A3\Data_F\ParticleEffects\Universal\Universal", 16, 12, 0, 8], "", "Billboard", 1, 3, [0, 0, 0], [0, 0, 2], 0, 1, 1, 0.5, [1, 3], [[1,0.5,0,1], [1,0.2,0,0.5], [0.5,0.1,0,0]], [0.5, 1], 1, 1, "", "", _ps1]; _ps1 setParticleRandom [0.4, [1, 1, 1], [0.5, 0.5, 0.5], 0.4, 0.4, [0, 0, 0, 0], 0, 0]; _ps1 setDropInterval 0.03; //-- // Particle Effect Smoke private _ps2 = "test_EmptyObjectForSmoke" createVehicle (position _heli); _ps2 attachto [_heli, [0,0,0]]; //-- // End Fire sleep 3; deleteVehicle _ps1; //-- // Destroy Helicopter waituntil {isTouchingGround _heli}; sleep 1; _heli allowDamage true; sleep 1; _heli setDamage 1; //-- // End Smoke sleep 60; deleteVehicle _ps2; //--
Regards,
Scott
Comment