UGX-Mods

Call of Duty 5: World at War => Help Desk => Scripting => Topic started by: GimmCity on August 22, 2020, 01:02:29 pm

Title: I want 4 script_brushmodels with one targetname
Post by: GimmCity on August 22, 2020, 01:02:29 pm
as in the title described i wanna have 4 script_brushmodels with the same targetname... but when i make this script:


trigger                 = getent ("trig_tanke_lights","targetname");



 diesel                = getent ("diesel","targetname");

diesel                 hide();

       trigger waittill ("trigger");

        trigger SetCursorHint( "HINT_NOICON" );

        trigger playsound("tanke_lights");



        wait 1.9;

        diesel                show();



it throws me an script compile error. i read about  getent to be getentarray but does it work ? i tried and get  an error too, maybe im doing something wrong.

i want to activate these 4 script_bruschmodels when i activate my trigger. it works all fine when i have 4 script_brushmodels  which different targetnames but not when all the script_brushmodels have the same targetname..

pls help