Technical > Editing & Coding

Alternate ATM Object

(1/1)

GriffinZS:
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: ---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 };
--- End code ---

- also in client\functions\generateAtmArray.sqf

--- Code: ---if (isNil "A3W_atmArray") then
{
A3W_atmArray = allMissionObjects "Land_Atm_01_F" + allMissionObjects "Land_Atm_02_F" + allMissionObjects "Land_Laptop_unfolded_F";
};
--- End code ---

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?  ???

LeonZ:
How about ATM position? use the script that given + some modify for laptop

GriffinZS:
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 ..

 :-[

LeonZ:

--- Quote from: GriffinZS on 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 ..

 :-[

--- End quote ---

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

GriffinZS:
You KNEW it, right?  ;D

Alternate ATM Object
Thanks again!

Navigation

[0] Message Index

Go to full version