ProjectsWhat's NewDownloadsCommunitySupportCompany
Forum Index » S.T.A.L.K.E.R.: Clear Sky Forum » Mod discussion
A question for scripters - inventory transfer between offline NPCs

Posted by/on
Question/AnswerMake Newest Up Sort by Descending
  15:33:48  2 September 2013
profilee-mailreply Message URLTo the Top
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?
 
Each word should be at least 3 characters long.
Search:    
Search conditions:    - spaces as AND    - spaces as OR   
 
Forum Index » S.T.A.L.K.E.R.: Clear Sky Forum » Mod discussion
 

All short dates are in Month-Day-Year format.


 

Copyright © 1995-2019 GSC Game World. All rights reserved.
This site is best viewed in Internet Explorer 4.xx and up and Javascript enabled. Webmaster.
Opera Software products are not supported.
If any problem concerning the site functioning under Opera Software appears apply
to Opera Software technical support service.