Jump to content

Silens

Member
  • Posts

    28
  • Joined

  • Last visited

Reputation Activity

  1. Like
    Silens got a reaction from speaR in Adding custom content to the double click menu on items?   
    Modifying existing GUI elements and adding new ones is possible through scripting. A3 GUI script commands.
    I did this for one of my scripts (added button to trader menu), however it stopped working after the latest major update (probably due to the security changes) and I just haven't had the time to fix it, but it should still be possible.
  2. Like
    Silens got a reaction from SadBoy1981 in Add custom vehicles problem   
    Code is probably running before epoch_server_setvtoken is compiled. Try adding a delay, or wait until !isnil "EPOCH_server_setVToken" ?
  3. Like
    Silens got a reaction from spartan in Adding a plane to the map (sounds simple)   
    In your mission init.sqf, 
    if (isServer) then { _veh = createVehicle["M_Plane_F", _spawnPos, [8500, 2500, 0.01], 0, "NO_COLLIDE"]; _veh setDir 90.314346; _veh setPos [8500, 2500, 0.01]; _veh call EPOCH_server_setVToken; }; Or, if using M3Editor script, make sure the script is run on the server:
    private ["_objs"]; _objs = [ ["M_Plane_F",[11506.4,11653.6,0],0,[[0,1,0],[0,0,1]],false] ]; { private ["_obj"]; _obj = createVehicle [_x select 0, [0,0,0], [], 0, "CAN_COLLIDE"]; if (_x select 4) then { _obj setDir (_x select 2); _obj setPos (_x select 1); } else { _obj setPosATL (_x select 1); _obj setVectorDirAndUp (_x select 3); }; if ((_obj iskindof "Air") || (_obj iskindof "Tank") || (_obj isKindOf "Land") || (_obj isKindOf "Ship"))then{ //Add this to check for vehicles and set the vToken _obj call EPOCH_server_setVToken; }; } foreach _objs;
  4. Like
    Silens got a reaction from Liqu1dShadow in Adding a plane to the map (sounds simple)   
    In your mission init.sqf, 
    if (isServer) then { _veh = createVehicle["M_Plane_F", _spawnPos, [8500, 2500, 0.01], 0, "NO_COLLIDE"]; _veh setDir 90.314346; _veh setPos [8500, 2500, 0.01]; _veh call EPOCH_server_setVToken; }; Or, if using M3Editor script, make sure the script is run on the server:
    private ["_objs"]; _objs = [ ["M_Plane_F",[11506.4,11653.6,0],0,[[0,1,0],[0,0,1]],false] ]; { private ["_obj"]; _obj = createVehicle [_x select 0, [0,0,0], [], 0, "CAN_COLLIDE"]; if (_x select 4) then { _obj setDir (_x select 2); _obj setPos (_x select 1); } else { _obj setPosATL (_x select 1); _obj setVectorDirAndUp (_x select 3); }; if ((_obj iskindof "Air") || (_obj iskindof "Tank") || (_obj isKindOf "Land") || (_obj isKindOf "Ship"))then{ //Add this to check for vehicles and set the vToken _obj call EPOCH_server_setVToken; }; } foreach _objs;
  5. Like
    Silens got a reaction from DirtySanchez in Database Player Table/Key Help!!!   
    [[DIR,[X,Y,Z],"InstanceID"],[BleedRemainTime,0(this is hard coded to be 0),Oxygen,Damage],["Goggles","HeadGear","Vest","Backpack","Uniform","PlayerType(Epoch_Male_F)"],[not used for anything?],[Temp,Hunger,Thirst,AliveTime,Energy,Wet,Soiled,Immunity,Toxicity,Stamina,Crypto,[HitPoints],BloodPressure,[SpawnArray(antagonists)]],["CurrentWeapon",[WeaponAttachments&LoadedMagazines],["PrimaryWeapon","SecondaryWeapon","HandgunWeapon"]],["Items(NVG/MAP/GPS/etc)"],[Magazines(includes epoch stuff that is categorized as magazines)],[[ItemsInUniform&Count],[ItemsInVest&Count],[ItemsInBackpack&Count]],[[[WeaponsInUniform&Count]],[[WeaponsInVest&Count]],[[WeaponsInBackpack&Count]]],"GroupID",CanBeRevived]
×
×
  • Create New...