i am trying (but failing) to get a message appearing when you open a door, and a grenade given to you automaticly.
i.e.
open door:
get a grnade
message: you found a greanade
the message is second priority, it matters but the grenade is the important bit.
any help would be much appriecated.
message when opening doors
Moderator: Moderators
message when opening doors
"We must become the change we want to see in the world" (Mahatma Gandhi)
Trigger
Trigger_multiple will print a message in the center of the screen. So you could place the trigger just inside the door opening and set:
Key: message
Value: Pick up a granade!
Key: cnt
Value: 1
That will only be triggered one time. Maybe you can use that on the door entity itself--it does have a built-in trigger. Don't give the door a targetname, or the built-in trigger will be disabled.
You could also put a small trigger_multiple on the granade, with a message. But, if the player has to hit the use key to get it, a trigger_useonce might be better.
Key: message
Value: Pick up a granade!
Key: cnt
Value: 1
That will only be triggered one time. Maybe you can use that on the door entity itself--it does have a built-in trigger. Don't give the door a targetname, or the built-in trigger will be disabled.
You could also put a small trigger_multiple on the granade, with a message. But, if the player has to hit the use key to get it, a trigger_useonce might be better.
Don't forget, if you use tltrude's method, you will need to copy the localization.txt file, and add your message to the file. If you don't, instead of "Your message" you will get "ERROR:Your maessage needs localization".
Like jv_map said, his mehod will work for single player.
Now, this is untested, but you could also try opening the entity window with your grenade selected, and try to add k/v message/yourmessage, and see if it works.
That is not tested, and just a suggestion. If you try and it works, let us know!
Kill Ya Later!
Like jv_map said, his mehod will work for single player.
Now, this is untested, but you could also try opening the entity window with your grenade selected, and try to add k/v message/yourmessage, and see if it works.
That is not tested, and just a suggestion. If you try and it works, let us know!
Kill Ya Later!

