nakano15 Posted October 27, 2015 Group: Members Topic Count: 19 Topics Per Day: 0.01 Content Count: 102 Reputation: 8 Joined: 01/26/15 Last Seen: April 30, 2021 Share Posted October 27, 2015 I have some questions about the OnTouch: parameter on the npc scripting. Is there any way of avoiding monsters of triggering it? If the npc moves location by using either walk to or teleport, the areas of ontouch will change aswell? These questions are troubling me. Quote Link to comment Share on other sites More sharing options...
Haziel Posted October 27, 2015 Group: Content Moderator Topic Count: 22 Topics Per Day: 0.00 Content Count: 639 Reputation: 609 Joined: 11/25/11 Last Seen: March 7 Share Posted October 27, 2015 1. Usually NPCs do not trigger it.2. Yes. Quote Link to comment Share on other sites More sharing options...
nakano15 Posted October 27, 2015 Group: Members Topic Count: 19 Topics Per Day: 0.01 Content Count: 102 Reputation: 8 Joined: 01/26/15 Last Seen: April 30, 2021 Author Share Posted October 27, 2015 Thanks, that helped, I just wish there were a way of making so the touch area is a square around the npc... Quote Link to comment Share on other sites More sharing options...
Azura Skyy Posted October 27, 2015 Group: Members Topic Count: 49 Topics Per Day: 0.01 Content Count: 545 Reputation: 221 Joined: 03/01/13 Last Seen: January 2, 2023 Share Posted October 27, 2015 Thanks, that helped, I just wish there were a way of making so the touch area is a square around the npc... It is a square? Do you mean OnTouch to merely occupy the cell the npc is on, or? What area are you looking to cover? Regards, ~AzuraSkyy Quote Link to comment Share on other sites More sharing options...
nakano15 Posted October 27, 2015 Group: Members Topic Count: 19 Topics Per Day: 0.01 Content Count: 102 Reputation: 8 Joined: 01/26/15 Last Seen: April 30, 2021 Author Share Posted October 27, 2015 (edited) For my npc to work as intended, I would need to make so the npc touch area is an square around the npc. like squared dimensions -3,-3,3,3. Edited October 27, 2015 by nakano15 Quote Link to comment Share on other sites More sharing options...
Haziel Posted October 27, 2015 Group: Content Moderator Topic Count: 22 Topics Per Day: 0.00 Content Count: 639 Reputation: 609 Joined: 11/25/11 Last Seen: March 7 Share Posted October 27, 2015 It IS a square, if you set it to ,3,3 it will be 3 cells in any direction. Quote Link to comment Share on other sites More sharing options...
nakano15 Posted October 27, 2015 Group: Members Topic Count: 19 Topics Per Day: 0.01 Content Count: 102 Reputation: 8 Joined: 01/26/15 Last Seen: April 30, 2021 Author Share Posted October 27, 2015 Hum, good to know. I thought it would make a line in front of the npc direction instead. Quote Link to comment Share on other sites More sharing options...
Question
nakano15
I have some questions about the OnTouch: parameter on the npc scripting.
These questions are troubling me.
Link to comment
Share on other sites
6 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.