Modme Forums

Custom KVPS

Game Modding | Call of Duty: Black Ops 3 | Scripting


Dan9977:

I'm trying to access custom kvps of a trigger from a script similar to this tutorial. But it appears that they're not being recognised as valid by the script.

function test1()
 {
     trig = GetEnt("trig1","targetname");
    
        
         while(1)
         {
             IPrintLnBold(trig.test);
             wait(5);
         }

}



"abc" should be printed right?


modric1337:

I'm trying to access custom kvps of a trigger from a script similar to this tutorial. But it appears that they're not being recognised as valid by the script.
function test1()
{
     trig = GetEnt("trig1","targetname");
   
       
         while(1)
         {
             IPrintLnBold(trig.test);
             wait(5);
         }

}



"abc" should be printed right?

What actually happens in game? does it print nothing at all? also i would maybe add another print after the wait to debug it to make sure its actually being threaded and run properly


Dan9977:

What actually happens in game? does it print nothing at all? also i would maybe add another print after the wait to debug it to make sure its actually being threaded and run properly

I have tested it with other prints so the function is fine.