I'm working with darkcommanderhq's map Just Another RPG and trying to setup the Disembark settings to work like, leave the vehicle and restore the saved Playerbank's "currentUnit" as the saved Marine. Or do I need to create a new Marine? Needing help getting the disembark to work and have Player 1 control over the unit. It's showing green as it's Player 1's unit, but I can't control it.
I've got the neutral (0) units porting into a region, and able to get the marine to go into it. Just the leaving vehicle part having trouble with and retaining Player 1 control over the Marine that comes out. Thanks for any help!
And credit for the terrain, and initial units for neutral to KaldariaQ (Ta Da).
I don't have a direct fix for your problem, but instead of using a bank to store the unit you can just use "Show / Hide Unit". It'll make the unit invulnerable, completely invisible, uncontrollable, disables collision etc etc.
So you don't need to restore anything but just unhide the unit and move it to the right position once you're done. I guess the bug is also caused by the restoration through a bank.
I'm working with darkcommanderhq's map Just Another RPG and trying to setup the Disembark settings to work like, leave the vehicle and restore the saved Playerbank's "currentUnit" as the saved Marine. Or do I need to create a new Marine? Needing help getting the disembark to work and have Player 1 control over the unit. It's showing green as it's Player 1's unit, but I can't control it.
Here's the Enter Vehicle part
Starting Disembark code here.
I've got the neutral (0) units porting into a region, and able to get the marine to go into it. Just the leaving vehicle part having trouble with and retaining Player 1 control over the Marine that comes out. Thanks for any help!
And credit for the terrain, and initial units for neutral to KaldariaQ (Ta Da).
I don't have a direct fix for your problem, but instead of using a bank to store the unit you can just use "Show / Hide Unit". It'll make the unit invulnerable, completely invisible, uncontrollable, disables collision etc etc.
So you don't need to restore anything but just unhide the unit and move it to the right position once you're done. I guess the bug is also caused by the restoration through a bank.
@s3rius: Go
Excellent that seems to work. Just fine thanks very much! :D Also can remove a lot of unnecessary coding. Thanks again.
@s3rius: Go