On forum: 09/20/2009
Message edited by:
Helicopter at the wrong position after a reload|
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.