Unlike PCOs however don't expect the kit to "rotate" to keep it's orientation with the vehicle during online play, but it will stay on the vehicle though.
There is no way around this issue that I know of unfortunately. You might have to enable mobile physics on the kit. (but by doing so the kit will not appear on the map when a soldier using it dies, unless you give it a collision mesh. The mesh the main kit uses (the one visible on the map when it spawns) is the mesh you would need to add a collision mesh to. This would also mean that if you forgo a collision mesh, any spawners set up to spawn it on the map will also need the holdObject command to prevent it from falling through the terrain mesh where it will become unreachable. (as would also occur when a soldier drops it when they die.) You might not need mobile physics. Just be sure to test it in a online server to make sure it behaves correctly in multiplayer.

Also, if you have projectiles with the sticky property enabled in your mod, it would be a good idea to prevent them from interacting with kits. If a projectile (like sticky TNT for example) with the sticky property enabled collides with a kit and tries to stick to it, the game will crash with a "Unknown kit part" type error. This is due to how the sticky command works. The projectile actually "addTemplates" itself to the host object it collides with. The only objects it won't stick to are soldiers (but they will stick to soldiers if they are in a vehicle seat however.

Projectiles aren't allowed on kits as child objects thus the error when it attempts to stick to it. Thus if you do have any thing that might try to stick to a kit on the map with a collision mesh then you'll need to add this command to the kit:
Code: Select all
ObjectTemplate.addToCollisionGroup c_CGProjectiles

As for how to code the dummy engine, it can be very simple. The engine is best set as a car engine so you have no chance of it producing any thrust that would effect the kit:
(since it won't have any spring objects (wheels) attached to it, there is zero chance of it ever impacting movement physics of the kit or the soldier using the kit.)
Code: Select all
ObjectTemplate.create Engine KitDummyEngine
ObjectTemplate.setNetworkableInfo KitDummyEngine_Info
ObjectTemplate.setAttachToListener 1
ObjectTemplate.hasMobilePhysics 1
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.hasResponsePhysics 1
rem -------------------------------------
ObjectTemplate.setMinRotation 0/0/-100
ObjectTemplate.setMaxRotation 0/0/100
ObjectTemplate.setMaxSpeed 0/0/100
ObjectTemplate.setAcceleration 0/0/1000
ObjectTemplate.setInputToRoll c_PIThrottle
ObjectTemplate.setAutomaticReset 1
ObjectTemplate.setEngineType c_ETCar
ObjectTemplate.setTorque 0.1
ObjectTemplate.setDifferential 0.1
ObjectTemplate.setNumberOfGears 1
