Forum Jump :

Author Message


Posts: 4
Rank:


Level: Member

Country: pl
Location:
Occupation:
Age:
In-game name:

 
#1 Posted at 2020-05-02 17:16        
     
Hi,
I'm working on a mod with custom units. I was trying to find an optimized way of passing strings containing characters like: "" [ ( into "init" inside of "EventHandlers". I don't want to copy-paste full code for each unit, where I only change part of it. So instead I'd need to define such string and pass it into the init inside of EventHandlers.
Perhaps anyone knows some agile way of doing so? I was trying few ways and it's not working at all.

The phrase is like:
class cfgVehicles -> class Unit -> class EventHandlers {if (local (_this select 0)) then {[(_this select 0), [], [<<some variable stuff>>]] call BIS_fnc_unitHeadgear; <<other more constant code>>;}};