Ppgtjmad / SimpleShops

[HG] Simple Shops
27 stars 8 forks source link

[Question] Remapping ATM object #31

Closed logimy closed 6 years ago

logimy commented 6 years ago

Hello there! Thank you for awesome framework, i love how it works. Just a simple question around here. Where can i remap the ATM object? From Land_Atm_01_F and Land_Atm_02_F to something else?

So, what i have done for this moment: I'm already reached the goal by using a quickhack: atm_var_name hideObject true;, but i'm interested in normal methods of remapping ATM object. Searching for Land_Atm_01_F in whole HG folder doesn't give any results, so now i'm asking you here.

Ppgtjmad commented 6 years ago

Hello, you again?

Check this file HG/Functions/Client/Generic/fn_nearbyATM.sqf

Here I think you can figure out how to do it.

If your ATMs have classnames it's really easy, open HG/Functions/Client/EVH/fn_keyDown.sqf

Find the ATM key and add a check here for your classname.

logimy commented 6 years ago

Quickhack addition: it's important to ATM varname was starting (or just contain, i'm not sure) with atm_.

Example:
ATM variable name: atm_monk atm_monk hideObjectGlobal true;

logimy commented 6 years ago

Yeah, i find the way, thanks. I just need to add atm_ to the start of each ATM object variable name. Thank you!