make_text() { trigger = getent("text_trigger","targetname"); trigger SetCursorHint("HINT_NOICON"); trigger SetHintString("This is a trigger");
trigger waittill("trigger");
IPrintLnBold("TEXT HERE"); // THIS IS HOW YOU MAKE THE TEXT TO APPEAR ON THE SCREEN trigger delete(); }
To make so the text will appear when you hit the trigger by pressing F or something, make a trigger_use in radiant and name it,
Code Snippet
Plaintext
targetname - text_trigger
To make so the text will appear when you touch the trigger, make a trigger_multliple which you should find at the same place you make a trigger_use. And give it the same targetname I said before.
make_text() { trigger = getent("text_trigger","targetname"); trigger SetCursorHint("HINT_NOICON"); trigger SetHintString("This is a trigger");
trigger waittill("trigger");
IPrintLnBold("TEXT HERE"); // THIS IS HOW YOU MAKE THE TEXT TO APPEAR ON THE SCREEN trigger delete(); }
To make so the text will appear when you hit the trigger by pressing F or something, make a trigger_use in radiant and name it,
Code Snippet
Plaintext
targetname - text_trigger
To make so the text will appear when you touch the trigger, make a trigger_multliple which you should find at the same place you make a trigger_use. And give it the same targetname I said before.
I put this into a new gsc file. but it doesnt work, do i need to name the gsc a certain name?