Maxx Deischer Posted December 28, 2016 Share Posted December 28, 2016 Hello all,I have the following problem:I want to pay to a person a amount of L$ if he/she sits on a full perm prim for a time. (e.g. 5 minutes)I have everything going, but if the person stands up before the timer is done, the person get´s payed.I know there is llGetAgentInfo, but how can I be sure the person is sitting on the item and not sitting anywhere else ?Can someone give me a code example please ?ThanksMaxx. Link to comment Share on other sites More sharing options...
Innula Zenovka Posted December 28, 2016 Share Posted December 28, 2016 When someone sits down, call llResetTime(). . When they stand up, call llGetTime(). and, if tjhe result >= 300.0 seconds (five minutes), pay them. I find llResetTime and llGetTime really useful -- LSL's equivalent of a stop-watch. Link to comment Share on other sites More sharing options...
Maxx Deischer Posted December 28, 2016 Author Share Posted December 28, 2016 Sounds nice .. I will give it a try Thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Please take a moment to consider if this thread is worth bumping.
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now