hi everybody!! i'm new here.
there's something i don't like with CoC diver. when you're swimming you can't get in a boat. so i'm trying to make a script to do this. i'm making a mission where you're droped in the water by a chopper which also drop a zodiac. the script for this goes like this:
_helo= _this select 0
_helo flyInHeight 5
player animate ["goggles", 1]
~10
_helo animate ["Dvere1", 1]
~3
log1="Logic" CreateVehicle getpos _helo
~1
bato="CWKZodiacBO" CreateVehicle getPos log1
bato setPos [(getpos log1 select 0)+1, (getpos log1 select 1)+1, 0]
~1
player addAction ["board on boat", "passager.sqs"]
exit
so it allows the player to use the action "board on boat" to get in the zodiac while is swimming.
there's the scirpt executed by the action:
player setPos [(getpos log2 select 0), (getpos log2 select 1), 0]
player moveInCargo bato
exit
log2 is a game logic put on the ground, not in the water. so when i execute the action, everything goes well and my CoC diver board the boat. After that the action is still availble in the action menu. When i get out of the boat, the action disappears and i can't get in anymore.
and that's my problem, i would like to be able to get in the boat as many times as i want, not just once.
could someone give me a clue on how to do this?
thx for the coming answers!