smoq2
Forklift operator (Resident)
 On forum: 09/08/2008
Messages: 2433
|
A question for scripters - inventory transfer between offline NPCs
I've been doing it the safe way for now - recreating an item in the "getting" NPC's inventory, while releasing the one from the "giving" NPC.
However, doing it this way is rather a workaround than actual transfer.
- The new object has a different ID from the previous one.
- In case of weapons/outfits you have to read and set packet data to keep attributes.
- Creating new object in the image of another can cause stutter on slower computers.
I was wondering if there was a different way. Does any of you know if a simple change of se_object.parent_it would do the trick? Or maybe some other tricky method?
The page you need in the public telephone booth will always be missing.
The pendulum spins clockwise...
Current project:
S.T.A.L.K.E.R: The Faction War
https://www.gsc-game.com/main.php?t=community&s=forums&s_game_type=xr2&thm_id=22757&page=1&sec_id=22&sort=ASC&no_transl=#307619
|