Quick question! Anyway of making text appear on the screen from hitting certain triggers? Like say you walk into a trigger or shoot a trigger text shows up on the screen! Thanks
Not sure what your looking for exactly but heres some of the functions that print things on the screen:
Code Snippet
Plaintext
iprintln(""); iprintlnbold(""); bbPrint( "", level.script ); // not sure what this one does exactly
So where abouts do i go to put these codes? and lets say i shoot a trigger (like you do to open secret doors) you can make it say "you found a secret teddy bear"
So where abouts do i go to put these codes? and lets say i shoot a trigger (like you do to open secret doors) you can make it say "you found a secret teddy bear"
You only need one of them, i just posted them since i didn't know what you wanted.
i'd use this one though:
Code Snippet
Plaintext
iprintln("");
Put that after the trigger has been activated. To make it say anything you need to add it in between the quotation marks like so:
Code Snippet
Plaintext
iprintln("you found a secret teddy bear");
The message should display in the top left corner once the trigger has been activated.
Right click in the 2d view of radiant. Go to "trigger" then you can see you can choose between different triggers, "use" is for if you want to press a button on the keyboard to show the text. The one called "damage" is if you want to shoot the trigger to show the text. The one called "multiple" is for if you want to touch the trigger to show the text. Give whatever trigger you use this KVP targetname - trigger