package YourPackage
{
function Armor::onTrigger(%datablock,%player,%slot,%val)
{
Parent::onTrigger(%datablock,%player,%slot,%val);
// 0 = fire
// 2 = jump
// 3 = crouch
// 4 = jet
if(%slot == 4 && %val && %player.getMountedImage(0) == nameToID(YourControllerImage))
{
//Vehicle Data
//
//
%player.setControlObject(%yourVehicle);
}
}
};
activatePackage(YourPackage);
This is just a start, the "//Vehicle Data" stuff is where to put vehicle/aiplayer data.
You will need to write the other side of the controller if you want to go back to yourself. Otherwise you would be stuck.