16
Help / Re: [SOLVED] problems with plane spawn on my maps
« on: February 09, 2024, 03:36:24 pm »There's a technique you can try with labels and conditionals to get it to work with different size craft MAPs.Code: [Select]mapScripts:
- type: CARGOSHIP
commands:
- type: addCraft
label: 1
rects:
- [1, 0, 1, 2] #Fits only size MAP crafts of 10x20 or smaller.
- type: addCraft
label: 2
conditionals: [-1]
rects:
- [1, 0, 2, 2] #Fits only size MAP crafts of 20x20 or smaller.
- type: addCraft
label: 3 # Can be omitted if no other conditional checks are made.
conditionals: [-1,-2]
rects:
- [1, 0, 2, 3] #Fits only size MAP crafts of 20x30 or smaller.
- type: addBlock #Spawn Ship
size: [3, 7]
Yeah, that did the trick! This solution helped me resolve the problem with all ships landing correctly, except for just one (the 20x20). At this stage, it seems more feasible for me to edit and 'enlarge' the helipad platform instead of attempting to move the plane inside the MAP file, which could potentially cause misbehavior when interacting with other map scripts.
Thanks a ton for your help. This solution resolved my issue perfectly, and I truly appreciate your assistance.
(PS: Just to clarify, there wasn't any 20x30 plane, only 10x20 and 20x20 ).