Hi, Iam trying to do something like this guy from LOG1.
viewtopic.php?f=14&t=3851
Simply, I need to play custom sound when player click on wall text.
Is it possible now in LOG2 please? I tryed everything, but Iam not very good in LUA.
Walltext, custom sound onClick [solved]
Walltext, custom sound onClick [solved]
Last edited by Aisuu on Fri Oct 31, 2014 8:37 pm, edited 1 time in total.
Re: Walltext, custom sound onClick
make a script_entity and put in the following (replacing "dungeon_wall_text_1" with the id of your text-object)
Code: Select all
dungeon_wall_text_1.clickable:addConnector("onClick",self.go.id,"iclickedthewall")
function iclickedthewall(sender)
playSound("secret")
end
Links to my YouTube playlist of "tutorials" and to my forum thread.
Re: Walltext, custom sound onClick
Great, that work perfectly. Thx Prozail, you are my hero 