Jump to content

Piloto_Spyke

Member
  • Content Count

    23
  • Joined

  • Last visited

  • Medals

Community Reputation

14 Good

1 Follower

About Piloto_Spyke

  • Rank
    Private First Class

Recent Profile Visitors

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

  1. This list may or may not be updated in the future. Hope it helps.
  2. torials I made while helping people in Arma Discord First Steps Video: Generic 0. Print on console on player spawn 1. Actions and Hints -https://discord.com/channels/105462288051380224/976155351999201390/980360446110494761 2. How to Kill object -https://discord.com/channels/105462288051380224/976155351999201390/995759928838996099 3. Delete Vehicle - https://discord.com/channels/105462288051380224/976155351999201390/995762975006785607 4. Get entities from world in area - https://discord.com/channels/105462288051380224/976155351999201390/1068605228653498398 5. Make a custom config -https://discord.com/channels/105462288051380224/976155351999201390/1069333335672885299 6. Hide item - https://discord.com/channels/105462288051380224/976155351999201390/1076409862101155850 7. Check if third person IsActive - https://discord.com/channels/105462288051380224/976155351999201390/1076470136632004618 8. How to get attributes from a component not spawned yet. 9. Send notification (local client) 10. How to use Virtual Arsenal (spawn only locally) functionality. Edition 1. Change default loadout loaded when spawning on world editor (useful for test purposes). Change it on the Loadout Manager prefab that should be present on the world map. Workbench 1. Connecting Script Editor Debuger to PeerTool Client - https://discord.com/channels/105462288051380224/105465701543723008/998630810913607760 GUI 1. First steps - Button and Hint - https://discord.com/channels/105462288051380224/976159778965438494/980534472372019250 2. Lists - https://discord.com/channels/105462288051380224/976159778965438494/986701077846061066 GUI - Game master 1. Populating dropdown list getting the variables from a component placed in the edited entity (in his case the vehicle) - https://discord.com/channels/105462288051380224/976159778965438494/1030925491080802314 2. Add new waypoint to GM - https://discord.com/channels/105462288051380224/976159778965438494/1038538873283805325
  3. Piloto_Spyke

    Custom Configs

    Hi just to clarify in case someone has a similar issue: 1. This is the wiky entry: https://community.bistudio.com/wiki/Arma_Reforger:Resource_Manager:_Config_Editor#Config_File 2. The SCR_ConfigExample.c file (where you are defining your class) must be placed in yourMod/scripts/Game/ (inside Game you can place it inside other folders).
  4. Piloto_Spyke

    SetPos working strange

    SOLVED: With the help of Leopard20 on the Arma 3 Official Discord. _target setPosWorld AGLToASL (screenToWorld [0.5+_sensitivity_aux,0.5]);
  5. Piloto_Spyke

    SetPos working strange

    @beno_83au I have been looking and I have found this: It hasn't been released yet, although the code is public: https://github.com/itc-addons/ITC_Land_Systems/tree/feature-spike/Addons/itc_land_spike I would like my code to work, it's a loot simpler than his code and the only thing "not working" is the setPos 😞.
  6. Piloto_Spyke

    SetPos working strange

    @gc8 thx for your reply. I have tested it with setposATL and setposASL but the isse persists.
  7. Hi, I am trying to add a new functionality for a Spike launcher that we have in our mod. This functionality consists in that once the missile is launched you can control the point of impact manually (as seen in the video). For this I have created an invisible vehicle: and this is the code that controls the missile (you can test it easily, in any mission with a Titan AT turret): Problem: I don't know why the setPos doesn't behave as we expect in the hills. Even if we give it the order to go down, it always goes up in the same direction. Video to reproduce: How it works From 0:00 to 1:00 Arma 3 1:00 to end Thx, Spyke.
  8. Hi, I will post this because i havent found so much info related to class compartmentsLights. I have been helped by reyhard on the Arma 3 Discord. - Requieres the "points" to be defined in the model.p3d Memory LOD. - Requires compartments defined for all: driverCompartments = Compartment1; cargoCompartments[] = {Compartment1}; // and gunnerCompartments = "Compartment1"; in his respective turret class And this in myVehicle class: class compartmentsLights { class Comp1 // first class is asociated with Compartment1, second with Compartment2,.... { class Light1 { color[] = { 100,100,100 }; ambient[] = { 100,100,100 }; intensity = 0.1; size = 0; useFlare = 0; flareSize = 0; flareMaxDistance = 0; dayLight = 0; blinking = 0; class Attenuation { start = 0; constant = 0; linear = 1; quadratic = 70; hardLimitStart = 0.15; hardLimitEnd = 1.0; }; point = "light_interior1"; }; class Light2 : Light1 { point = "light_interior4"; }; class Light3 : Light1 { color[] = { 300,0,0 }; ambient[] = { 300,0,0 }; point = "light_interior2"; class Attenuation: Attenuation { start = 0; constant = 0; linear = 1; quadratic = 70; hardLimitStart = 0.5; hardLimitEnd = 1.5; }; }; class Light4 : Light3 { point = "light_interior3"; }; }; };
  9. Piloto_Spyke

    Fire From Vehicle (FFV) [config base]

    Well finally with some help from the arma 3 discord (reyhard thx) this is what I have: This is the code for a FFV from a BMR600 (4 cargoTurrets with 2 hatches). This requieres to create an animationSource An EventHandler to detect when the player is turnedOut and move the hatch and rotate the player to the correct direction And this is the code (fn_BMR_TurnOutFFV.sqf): And this the model.cfg Hope this helps.
  10. Piloto_Spyke

    Fire From Vehicle (FFV) [config base]

    Video of how it works with the abobe code. Reference 3:
  11. Hello I'm using the "CAR_F" from Arma 3 Samples to try to configure the FFV (Fire From Vehicle). More or less it works but it does not finish going as I want. I want you to not be able to shoot inside and have the same animation as the others who are sitting (Proxy.Cargo01.XX). Once you go out with the "turn in" I want it to stand up and be able to shoot as if you were out of the vehicle. Some references: MyTestAddonPbo: https://drive.google.com/drive/folders/1qv4Nbt2gfjcp5g31MHKcmNPY1pNiWM0m?usp=sharing Reference 1: https://community.bistudio.com/wiki/Arma_3_Cars_Config_Guidelines#Firing_from_vehicles Reference 2: Thx for your help, Spyke
  12. Hello, does anyone know how to create the Zeus modules for the Zeus of Arma 3 Vanilla. I knwo how to create the modules for EDEN, but I don't see nothing for Zeus Modules https://community.bistudio.com/wiki/Modules Thx.
  13. Hello, I open this thread so that people who search for it on the Internet can find it easier than I do. I have solved this with the help of the people who were in the Slack of the ACE (special mention to Schwaggot). 1. It have to be executed from an Addon (or at least it is the only way it worked for me) 2. Code executed from my addon config.cpp class ace_medical_treatment_actions { class Diagnose; class ExecuteMyCode: Diagnose { displayName = "EXECUTE MY CODE"; displayNameProgress = "EXECUTE MY CODE"; items[] = {}; category = "examine"; allowedSelections[] = {"All"}; allowSelfTreatment = 1; treatmentTime = 3; callbackSuccess = "true"; callbackFailure = ""; callbackProgress = ""; condition = "true"; itemConsumed = 0; litter[] = {}; }; }; Spyke.
  14. Hi, maybe this could be useful. init.sqf [] execVM "initSaveLoadouts.sqf"; initSaveLoadouts.sqf diag_log "initSaveLoadouts.sqf"; SPK_fnc_applyClient = { params ["_loadout", "_positionASL", "_dir"]; player setUnitLoadout _loadout; player setDir _dir; player setPosASL _positionASL; diag_log "(ClientData Load in client)"; }; SPK_fnc_resetClientData = { params["_uid"]; profileNamespace setVariable [format["Name_%1",_uid], nil]; profileNamespace setVariable [format["Loadout_%1",_uid], nil]; profileNamespace setVariable [format["Position_%1",_uid], nil]; profileNamespace setVariable [format["Direction_%1",_uid], nil]; }; SPK_fnc_saveClientData = { params["_unit","_uid","_name"]; profileNamespace setVariable [format["Name_%1",_uid], _name]; profileNamespace setVariable [format["Loadout_%1",_uid], getUnitLoadout _unit]; profileNamespace setVariable [format["Position_%1",_uid], getPos _unit]; profileNamespace setVariable [format["Direction_%1",_uid], getDir _unit]; saveprofileNamespace; diag_log format ["(ClientData Save) - ID: %1 | Name: %2 | Saved",_uid, _name]; }; SPK_fnc_loadClientData = { params["_uid","_name"]; _nameId = profileNamespace getVariable [format["Name_%1",_uid], ""]; _loadout = profileNamespace getVariable [format["Loadout_%1",_uid], []]; _position = profileNamespace getVariable [format["Position_%1",_uid], [0,0,0]]; _direction = profileNamespace getVariable [format["Direction_%1",_uid], 0]; diag_log format ["(ClientData Load) - ID: %1 | Name: %2 | Loaded",_uid, _name]; [_nameId,_loadout,_position,_direction] }; // Si esto se ejecuta en un servidor ... if(isServer) then { addMissionEventHandler [ "HandleDisconnect", { params ["_unit", "_id", "_uid", "_name"]; // Si la unidad existe ... if(!isNull _unit) then { // Guardamos la información del cliente [_unit,_uid,_name] spawn SPK_fnc_saveClientData; }; false } ]; addMissionEventHandler [ "PlayerConnected", { params ["_id", "_uid", "_name", "_jip", "_owner"]; // Si es un jugador en Join In Progres (JIP) ... if(_jip) then { // Cargamos la información que hemos guardado del cliente _loaded = [_uid,_name] spawn SPK_fnc_loadClientData; _loaded params ["_nameId","_loadout","_position","_direction"]; // Si no tenemos nada guardado de este cliente, no hacemos nada (EXIT). if(_nameId == "")exitWith{diag_log format ["Player %1 - Without saved data",_name]}; // Aplicamos el loadout, posición y dirección al jugador [_loadout,_position,_direction] remoteExec ["SPK_fnc_applyClient", _owner]; }; } ]; }; CONCLUSION after trying it: If you want to save variables: - It cannot be saved on the server unless a database is used. - They must be saved in the player's own profile with the profileNamespace or saveProfileNamespace commands. Therefore the scrip that I have put above does not serve to save remanent data. Spyke
  15. hi, I think there is no way to get variables or loadouts remaining after the mission has been terminated / canceled / aborted. The code you show works as long as the mission doesn't finish. Edit: I found this, maybe it works for you: profileNamespace --> To save it to the server saveProfileNamespace --> To make the data remain? I have never used them so I cannot help you much in how they work. Spyke.
×