Alternate ATM Object

Alternate ATM Object

« posted: Mar 30, 2022, 05:17 PM »
https://images2.imgbox.com/57/04/oyKH4qkb_o.png
Alternate ATM Object

Tried to replace the Land_Atm with Land_Laptop.

- copied the init of the given ATM into laptop's init
- added in client\items\atm\init.sqf

Code: [Select]
if ((str _target) find ": atm_" == -1 && {{_target isKindOf _x} count ["Land_Atm_01_F","Land_Atm_02_F","Land_ATM_01_malden_F","Land_Laptop_unfolded_F"] == 0}) exitWith { objNull };
- also in client\functions\generateAtmArray.sqf
Code: [Select]
if (isNil "A3W_atmArray") then
{
A3W_atmArray = allMissionObjects "Land_Atm_01_F" + allMissionObjects "Land_Atm_02_F" + allMissionObjects "Land_Laptop_unfolded_F";
};

In my mission, only editor placed ATMs are shown/working on the map.
Testing out of editor (client/host by my side) it's working. But not live on server.

What am I missing?  ???
  • Offline LeonZ
  • github.com/LeonZ2019/Lucky-s-Wasteland-Server
  • Geared Up
  • **
  • Posts: 35

Re: Alternate ATM Object

« Reply #1 posted: Mar 30, 2022, 07:56 PM »
How about ATM position? use the script that given + some modify for laptop

Re: Alternate ATM Object

« Reply #2 posted: Mar 30, 2022, 09:39 PM »
What change would this make? On purpose I only want to use editor placed ATMs.
It's strange, because outa editor it's working fine. I think, I'm missing something somewhere but don't get it ..

 :-[
  • Offline LeonZ
  • github.com/LeonZ2019/Lucky-s-Wasteland-Server
  • Geared Up
  • **
  • Posts: 35

Re: Alternate ATM Object

« Reply #3 posted: Mar 31, 2022, 02:34 PM »
What change would this make? On purpose I only want to use editor placed ATMs.
It's strange, because outa editor it's working fine. I think, I'm missing something somewhere but don't get it ..

 :-[

Maybe you try the atm position array then see if server side work

Re: Alternate ATM Object

« Reply #4 posted: Mar 31, 2022, 11:41 PM »
You KNEW it, right?  ;D

https://images2.imgbox.com/66/d4/hcVGVrcI_o.png
Alternate ATM Object

Thanks again!