#2

16th May 2025 at 1:31 AM
Posts: 1,573
Thanks: 2750 in 71 Posts
8 Achievements
Adding a new interaction of any kind should probably be done with a "social plugin", like I've added my gardening commands.
You can look at a simple example of spawning an object from inventory where people use Cologne (person 230A), which calls 44B and 44A to get and put back in. There is an option to keep it in the inventory, so it doesn't get lost on an error; then you don't need to put it back in, just delete. Then in 0x7F8A4AF0 you can see how there is a pull out animation in 1009, and during its event 1005, the bottle is snapped into the person's slot from its creation location out of world.
If you already have an interaction to use from world, then there should be a way of jumping ahead past the point where he picks the thing up, to replace this action with a pull out from pocket. There are other pullout animations for things like cellphone, etc. Maybe one of then fits.
Isn't it enough that you took the object out of a neighbor's memory to say that it belongs to him? If a person can carry another person's doll, you could push a property onto this inventory item after adding it to memory. The object's attributes are not accessible until spawning.