Controllable Pirate Ships

SpSpranklzMay 12 2016157611
    Halo and Forge Discussion

Pictures to come!

I hate sharing my ideas with people sometimes because I want few people to know about them. Hehe!

But I wanted to talk a little bit about this map I made:

Essentially, I made two small pirate ships over a bunch of chromas that simulate water.

The ships slowly and constantly move forward.

They can be rotated 15 degrees left or right at a time via two switches at the helm of the ships.

Basically, you can make your own vehicles in a similar way by scripting all the pieces correctly.

You must first group each item you want to have the same script, then give them the scripts you want. If you have 2 objects in a group, you will not be able to script them differently, so only group them after this is done.

Next, you will need to weld all items together, including the switches. This gives them the same center of mass, which means the whole welded group will rotate/move together. If you do not weld, the pieces will rotate about the location of their current axes, meaning it won't work.

With one script telling everything to move forward, and two more that do the rotation, each object has 3 scripts on it (4 for the switches). That means that you can only have 512/3 = about 180 pieces. That means only about 90 per boat.

It is important to know that spawn locations currently cannot take scripts, so you would spawn outside the boat once the boat moves a certain distance unless another procedure is implemented. I used two receive teleporters on each ship, then had players spawn by a sender teleporter for the correct team's ship. I put some weapons in that room, too. So, they spawn, grab a gun, go through the teleporter, and end up on the ship as if they had just spawned there.

Also, note that with any lag whatsoever, the pieces have a chance to offset slightly during each rotation, meaning your vehicles will slowly distort over time. You might be able to fix this by using small rotations and movements, but should probably design your map so that vehicle distortion is not a huge deficit.

Lastly, the boats can move past the edges of the map, meaning the map will effectively break when players spawn in a kill zone. You can fix this by doing a series of 1-life rounds. I haven't found a way to have effective scripting to either tell the ship to turn around or something in order to keep the map from "breaking" in this way.

I took some videos with my iPhone 6 but cannot seem to upload them!

...If I wanted to do the map differently, I could also make cannons in several ways....

The best way to make a cannon, in my opinion, would be to create the barrel and stand for the cannon with an invisible switch that allows players to "interact." Upon interaction, an explosive barrel or 2x2x2 block or whatever would spawn in the barrel of the cannon (or at the end, depending on your geometry restrictions). That object would have the script "Upon spawning, displace forward 200 units in 1 second;" and, "every 0.9 seconds, despawn," or whatever you wanted. That way, when you interact with the cannon, it shoots a fast projectile. Set the physics of the object to normal to have it be affected by gravity.

It would be complicated to rotate the cannon because it would require other switches, but it could be done. The cannons would also be pretty intensive on scripts, which means they probably cannot fit in a map that also has moving pirate ships. Perhaps it would work best with two stationary ships, or perhaps one moving ship and one imperial fortress or something.