Scripting (No Discussion, just posts) - Printable Version +- Comrades in Arms Discussion Board (http://forum.ciahome.net) +-- Forum: Comrades in Arms Life (http://forum.ciahome.net/forumdisplay.php?fid=3) +--- Forum: Mission Making (http://forum.ciahome.net/forumdisplay.php?fid=8) +--- Thread: Scripting (No Discussion, just posts) (/showthread.php?tid=2463) |
RE: Scripting (No Discussion, just posts) - alias - 09-05-2016 @Alwarren Most scripts have 2 components, one running on server side and another on client, some scripts might have just one component depending on what it has to do. From what i've seen in my tests/missions and in other people missions they have small impact on frames if used correctly. HC is taken in account. Particles are not set to have an impact on AI vision to avoid server lag, fog has the default impact on AI vision, i usually tweak AI skills in missions where i use vision obstructive particles to simulate the impact on AI vision. RE: Scripting (No Discussion, just posts) - treendy - 11-30-2016 Adjusted NVG script http://www.armaholic.com/page.php?id=25920 Can just be added to your mission, so no need for Mods RE: Scripting (No Discussion, just posts) - Varanon - 02-18-2018 Here's a script I wrote for making HALO jumps while preserving backpacks (it's attached to the belly while jumping). I used it like this in init.sqf: Code: FHQ_halo = compile preprocessFileLineNumbers "scripts\halo.sqf"; This will have all playableUnits start around the marker _start_marker, at a height of 3000 RE: Scripting (No Discussion, just posts) - Dalken - 04-02-2020 Hey friends! I was toying around with some scripts, decided to take a shot at making one of my own. It uses a similar structure to FHQ ace loadout function. It basically adds ACE medical supplies to the unit it is called for (amount based on the number given 1-5) and gives the medic trait if they don't already have it. It is called like so Code: "[UnitVariable, (1-5)] call compile preprocessFileLineNumbers "AceMedicKit.sqf";" The idea is to add medical supplies to medics without creating an ace dependency if you don't want it. Note: Have not tested on dedicated yet! RE: Scripting (No Discussion, just posts) - Dalken - 07-27-2020 Hey friends, this script will add equipment to all roles. Entrenching tools, clackers, medical supplies, tripods, rangecards, etc. You can read into the script to see the exact conditions and items added, or adjust them as you need. Simply copy into your initserver.sqf: Code: { RE: Scripting (No Discussion, just posts) - Phantom - 11-19-2020 Suicide Car Bomb script Throw the functions below into a game logic in the editor. Suicide bomb script: Add this to the unit group/composition init and make sure they are driving a vehicle: Code: _nul = leader this spawn Bomb_car_explode_fnc; Code: Bomb_car_explode_fnc = { Car charging at units script: Add this to the unit group/composition init or call it from a trigger to order the specified suicide bomb truck to start driving towards players (replace <group_name> with the actual group's name: Code: _nul = <group_name> spawn Bomb_car_charge_fnc; Code: Bomb_car_charge_fnc = { Example mission included in post. Note that if you want to make the suicide car bombs charge at units that you can change WEST to EAST or RESISTANCE if you want suicide car bombs to charge at those factions instead. You can replace allUnits with playableUnits + switchableUnits or your own custom array if you want suicide car bombs to only target players or specified units as well. RE: Scripting (No Discussion, just posts) - Varanon - 12-20-2020 The attached sample mission demonstrates how to check exfiltration for players, accounting for multiple groups, players in vehicles, alive players, etc. It offers different versions of exfiltration, like all players in one specific trigger, all players in any one trigger, or players distributed among exfil triggers. It's a "simple" version without the use of external scripts (except something needed in init.sqf). Pick the trigger (of the bottom three) that fits your need, modify the trigger names, and set the trigger to be non-repeatable. More information is provided in comment nodes. |