T

Tiberius

Member

Last active 8 years ago

  1. 9 years ago
    Wed Dec 17 23:47:08 2014
    T Tiberius started the conversation Unable to add 'Addaction' to spawning units.

    Hello everyone,

    I really like Alive and I'm playing around with different features. I'm working on a mission, that takes place
    in Takistan, were it is important to establish a good relationship with the local population.
    One way of doing that in this mission is by talking to them via an 'Addaction'. However, I'm not understanding how I can add
    the 'addaction' to civilians that spawned with the civilian module (I have managed to get civies spawning ;P).

    The line below is the line that I use in the editor on editor placed units (which works well, no problem).

    talk= this addAction ["Talk", "talk\talk_init.sqf", [true, false, false, false]];

    I tried to apply this to my needs and came up with this:

    class Extended_Init_EventHandlers { class Man { talk = "_this call (addAction ["Talk", "talk\talk_init.sqf", [true, false, false, false]];)"; }; };

    Looking at that will show you how less of a clue I got :). I usually get stuff working after some reading and trying, but after some game crashes due to messing with the description file I got the feeling that asking on this forum might be a better idea..

    So is there some one able and willing to point this newbie in the right direction?
    Thanks for your time and effort.

    Greets from Tiberius

  2. Wed Dec 17 23:32:38 2014
    T Tiberius joined the forum.