Need some help

In one of my games in production I am trying to get my main charector “USman” to get into a truck, although deleting him after he gets in. Here is my code what am I doing wrong?


onClipEvent (load) {
entering = false;
}
onClipEvent (enterFrame) {
if (Key.isDown(KEY.SHIFT)) {
        entering = true;
    } else {
        entering = false;
    }
    if (entering=true) {
        if (_root.truck.hitTest(removeMovieClip(USman))) {
            truck.gotoAndStop(3);
        }
}

I obviously have more code, but that is where I believe the problem lies. Also do I need to put any actionscript in the truck to make this work?

THANKS A LOT FOR ANY HELP!! :thumb2::thumb2: