Jump to content

Freddywall

Member
  • Content Count

    36
  • Joined

  • Last visited

  • Medals

Everything posted by Freddywall

  1. I'm trying to make a script to move a specific player to the vehicle but it only works on AI FREDDY_FNC_GETINVEH = { private ["_unit"]; _unit = cursorTarget; _nearestVehicle = nearestObjects[getPosATL player,["Car","Ship","Submarine","Air"],10] select 0; if (isNil "_nearestVehicle") exitWith {}; _unit moveInCargo _nearestVehicle; }; Calling the function via the GUI: action = "remoteExecCall ['FREDDY_FNC_GETINVEH', 0, true];";
  2. Freddywall

    moveincargo problem

    it works, ty
  3. Hello guys, i'm looking for a script which will run when i double click on certain item in my inventory. I was looking for something similar on forum but I didn't found anything working
  4. Hello guys, i am trying to make super simple money script for my MP mission. I want the reward depending on the side. If u kill ur teammate or suicide it displays some text but if u kill enemy it will give u some reward. So i tried to use: if (side _killed == side _killer) then {hint "teamkill";} else {cash = (cash + 100); hint str cash;}; but seems it doesn't work //InitPlayerLocal.sqf cash = 0; { _x addEventHandler ["killed", { _unit = (_this select 0); _killer = (_this select 1); pKilled = [_unit, _killer]; publicVariableServer "pKilled"; }]; } forEach allUnits; "pClient" addPublicVariableEventHandler { if (side _killed == side _killer) then {hint "teamkill";} else {cash = (cash + 100); hint str cash;}; }; //InitServer.sqf "pKilled" addPublicVariableEventHandler { private ["_data"]; _data = (_this select 1); _unit = (_data select 0); _killer = (_data select 1); _cID = owner _killer; _cID publicVariableClient "pClient"; };
  5. Hello guys i'am new at scripting. I'am trying to write script which will display some text if player kill his teammate. I tried use EH killed for this, but it's doesn't work. //InitPlayerLocal.sqf player addEventHandler ["Killed", { params ["_unit", "_killer", "_instigator", "_useEffects"]; if (side _killer == side _unit) then {hint "teamkill";} else {hint "not teamkill";}; }];
  6. Hello, need a script to delete all vehicles from map every 2 minutes
  7. Script to delete abandoned vehicles every 2 minutes?
  8. Freddywall

    increase damage to player?

    Working. Thank u
  9. Hello, i'd like to increase damage by bullets to player how i can do that?
  10. Freddywall

    increase damage to player?

    seems it doesn't work. Where should i put it?
  11. Hello, i got script which shows player markers on map, but it show only players in group. How to make it show all players on your side? waitUntil {!isNull (finddisplay 12)}; ((findDisplay 12) displayCtrl 51) ctrlAddEventHandler [ "Draw", { params ["_ctrl"]; { _ctrl drawIcon [ getText (configFile >> "CfgVehicles" >> typeOf _x >> "icon"), [side _x] call BIS_fnc_sideColor, _x, 32, 32, getDir _x, name _x, true ] } forEach (units (group player)); } ];
  12. Hello, need script which will damage player outside of trigger
  13. Freddywall

    Damage player outside trigger

    It works well, thank you
  14. Freddywall

    Damage player outside trigger

    seems it's doesn't work. Error in "_outSideUnits = (allUnits select {!(_x inAreaArray triggerName)});"
  15. Freddywall

    Damage player outside trigger

    How can i make it with ellips?
  16. Freddywall

    Damage player outside trigger

    I continue get damage when i am inside the trigger
  17. Freddywall

    Damage player outside trigger

    how to disable it when i am again goes inside the trigger?
  18. Freddywall

    Damage player outside trigger

    https://imgur.com/02T5AHg got this error
  19. Freddywall

    Damage player outside trigger

    How can i make gradual damage while player outside trigger
  20. Hello, i got script which shows player markers and names on map, it work's well in SP, but didn't work on Dedicated server. What's the problem? ((findDisplay 12) displayCtrl 51) ctrlAddEventHandler [ "Draw", { params ["_ctrl"]; { _ctrl drawIcon [ getText (configFile >> "CfgVehicles" >> typeOf _x >> "icon"), [side _x] call BIS_fnc_sideColor, _x, 32, 32, getDir _x, name _x, true ] } forEach (units (group player)); } ];
  21. Freddywall

    Help with script

    Sry, my bad. It's working. Thank you
  22. Freddywall

    Help with script

    It's doesn't work
  23. Hello, i'm noob in mission editing. I'am playing with Revage mod and i want to make simple safe zone with trgger which delete all zombies inside the trigger. Any ideas?
  24. Freddywall

    Delete Zombies in trigger

    Nothing has changed
×