Modme Forums

Trigger Kvps

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


ModmeBot:

Thread By: Kingslayer Kyle

Does anybody know how to create a use trigger with a kvp that when activated gives an iPrintLnBold message?

and also a kvp that changes the hint string if possible? Like i can set it to set "Press F for whatever" and overwrite the default hint string in the gsc

If possible a KVP other than script_string because my use trigger already has one of them

Also if anybody knows how to, Nate scripted this for me: http://aviacreations.com/modme/index.php?view=topic&tid=892

If anybody is good enough to edit it so that it can play the songs multiple times that would be great,

Thanks,

Kyle. :)


ModmeBot:

Reply By: mathfag

Kingslayer

Does anybody know how to create a use trigger with a kvp that when activated gives an iPrintLnBold message?

and also a kvp that changes the hint string if possible? Like i can set it to set "Press F for whatever" and overwrite the default hint string in the gsc

If possible a KVP other than script_string because my use trigger already has one of them

Also if anybody knows how to, Nate scripted this for me: http://aviacreations.com/modme/index.php?view=topic&tid=892

If anybody is good enough to edit it so that it can play the songs multiple times that would be great,

Thanks,

Kyle. :)

function trigger_String_change()
{
trig = GetEnt("triggername", "targetname");


trig SetHintString(" Whatever you want it to say");
trig SetCursorHint("HINT_NOICON");
 

while(1)
{
trig waittill("trigger", player);

trig SetHintString(" Whatever the new thing you need it to say");


break;
}

}



Didn't test but should work