Visa ämne
Repair skript
|
|
Publicerat 2015-05-10 17:33
|
|
Tjena. Såg på streamen att ni behövde ett repairscript. Vi byggde ihop denna lite snabbt. Det som är bra att ni kan definera vilket objects som helst som repairlåda. Ammolådor används med fördel då dem kan lastas i bilar osv. // Script by Super and Humlan // SOD141 // Activation hint vehicle player vehicleChat "Repairing, rearming and refueling"; sleep 10; vehicle player vehicleChat "Damnit Carl, don't break shit!"; sleep 5; vehicle player vehicleChat "Still repairing, rearming and refueling"; // Remove the repair action repVeh removeAction repAct; repveh2 removeAction repAct; repveh3 removeAction repAct; // Initialization _waitTime = 102; // Define wait time in seconds (10+5+1+1+1). In this case total is 120 seconds _vehicle = (vehicle player); // Select player's vehicle // Remove fuel to avoid the vehicle from moving _vehicle setFuel 0; // Wait the specified amount of time sleep _waitTime; // Repair _vehicle setDamage 0; sleep 1; // Rearm _vehicle setVehicleAmmo 1; sleep 1; // Refuel _vehicle setFuel 1; sleep 1; // ReAdd the repair action repAct = repveh addAction ["RRR - Service", "repair/repScript.sqf"]; repAct = repveh2 addAction ["RRR - Service", "repair/repScript.sqf"]; repAct = repveh3 addAction ["RRR - Service", "repair/repScript.sqf"]; // Closing hint vehicle player vehicleChat "Done, get back to the fight!"; |
|
|
|
Publicerat 2015-05-10 18:27
|
|
http://www.armaho...p?id=19735 | |
|
Gå direkt till forum: |