ProjectsWhat's NewDownloadsCommunitySupportCompany
Forum Index » S.T.A.L.K.E.R.: Shadow of Chernobyl Forum » Mod discussion
Helicopter at the wrong position after a reload

Posted by/on
Question/AnswerMake Newest Up Sort by Descending
  00:10:04  19 September 2014
profilee-mailreply Message URLTo the Top
SacriPan
Senior Resident
 

 
On forum: 09/20/2009
 

Message edited by:
SacriPan
09/19/2014 0:11:52
Messages: 319
Helicopter at the wrong position after a reload

Hello Stalkers,

I have a problem with a helicopter.

I spawn it via script and set it on a patrol (custom pathways defined in script, no Logic involved).

I save the game, then I reload. When the reload is complete, the helicopter is not where it was when I saved the game.

It is where it was spawned at the beginning of the game, then it goes straight forward to the point where it was when I saved the game, and it seems to resume its patrol...

What the hell is this?


Also, I have an other problem.
I use the following code to "get" the helicopter and change its destination point and other properties:
	heli = level.object_by_id(helicopter_id)
	heli.heliObject = heli:get_helicopter()

The thing is, sometimes it doesn't work (heli is nil), even if I know for a fact that the helicopter is spawned and the ID is valid.

Same question as above. Have a nice headache.
  00:21:39  19 September 2014
profilee-mailreply Message URLTo the Top
TKGP
Senior Resident
 

 
On forum: 01/25/2013
 

Message edited by:
TKGP
09/19/2014 0:22:10
Messages: 454
Presumably the second problem is happening because the heli is currently offline. You can get server object references for offline objects with alife():object( [id] )
  12:50:29  19 September 2014
profilee-mailreply Message URLTo the Top
SacriPan
Senior Resident
 

 
On forum: 09/20/2009
Messages: 319
Nope.

I changed the offline/online switch distance to 50000, so it's not the problem here.
Besides, I also tried to get the server object reference but I got the same error.
It seems that you can only get the helicopter object by using the code I posted above.
And I think helicopters don't go offline (I may be wrong though).
 
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.: Shadow of Chernobyl Forum » Mod discussion
 

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


 

Copyright © 1995-2021 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.