Jump to content

Freddywall

Member
  • Content Count

    36
  • Joined

  • Last visited

  • Medals

Community Reputation

11 Good

About Freddywall

  • Rank
    Private First Class

Recent Profile Visitors

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

  1. Freddywall

    moveincargo problem

    it works, ty
  2. 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];";
  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. Freddywall

    increase damage to player?

    seems it doesn't work. Where should i put it?
  10. Hello, i'd like to increase damage by bullets to player how i can do that?
  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. Freddywall

    Damage player outside trigger

    It works well, thank you
  13. Freddywall

    Damage player outside trigger

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

    Damage player outside trigger

    How can i make it with ellips?
  15. Freddywall

    Damage player outside trigger

    I continue get damage when i am inside the trigger
×