Item interaction RP

Swiftay98

New Member
Feb 20, 2018
17
6
Hey, just working on my RP and need some help.
Like on PeakRP etc they have made it so you can interact with items around the world, (eg) hospital cupboards for medkits etc I was just wondering how this is possible and how to add my own interaction's so when I click on something in the RP the speech line comes up with an interaction.
 

JayC

Always Learning
Aug 8, 2013
5,494
1,398
1) depends on your emulator but here is a general idea:
- create an RP interactor class that has in the trigger method the chat you want to say
- add the interaction to the list of interactions
- return the class if the interaction is of which you created
- return the interaction type based on the string value in the database
- set your database interaction type

You can get access to these locations by right clicking on existing code and clicking find all references and it will make more sense
 

Swiftay98

New Member
Feb 20, 2018
17
6
Thanks for the reply, sorry but I'm new to retro owning and fairly new to coding though a know a good amount of html and css and i'm not to bad at reading and understanding the code. Is there any tutorial's at all on here as it might be easier for me to follow. Thanks for the help.
 

Users who are viewing this thread

Top