Currently I've got this script which will call a vertibird, make it bomb and then it will fly away, but the vertibird won't even appear, nor will it add a single bottlecap into my inventory as a debug. Here is the script (that StartBombing is a global var which is set to 1 if a button is pressed):
scn PlayerVertibirdBombing02SCRIPTshort doOnceBomb02float timerBomb02short firingFlagBomb02float fireTimerBomb02ref VertibirdCallBomb02REFERENCEshort doOnceBegin gameMode if (StartBombing == 1 && doOnce == 0) player.additem f 1;DEBUG!!! set VertibirdCallBomb02REFERENCE to player.PlaceAtMe PlayerVertibirdBomb02;Place Vertibird at player VertibirdCallBomb02REFERENCE.SetAngle x 0 ;Make sure the Vertibird fires on the ground VertibirdCallBomb02REFERENCE.SetAngle y 0 ;Make sure the Vertibird fires on the ground set doOnceBomb02 to 1;Enable doOnceBomb02 to engage bombing run set timerBomb02 to 1;Set the timer for the bombing run set doOnce to 1 endif if (doOnceBomb02 == 1) if (VertibirdCallBomb02REFERENCE.HasLoaded3D != 0) VertibirdCallBomb02REFERENCE.playgroup Forward 1 set fireTimerBomb02 to 0.5;vertibird going to shoot for this long once in position set timerBomb02 to 12 ;vertibird takes this long to get into hovering position set doOnceBomb02 to 2 endif elseif (doOnceBomb02 == 2) if (VertibirdCallBomb02REFERENCE.isAnimPlaying Forward == 0) VertibirdCallBomb02REFERENCE.disable ;disable the vertibird when it's done playing its forward animation set PlayerVertibirdBomb02QUEST.StartBombing to 1 set doOnceBomb02 to 4 endif if (timerBomb02 <=0) ;vertibird in position to start firing set timerBomb02 to 4;vertibird hovers for this long before flying away set firingFlagBomb02 to 1 set doOnceBomb02 to 3 else set timerBomb02 to (timerBomb02 - GetSecondsPassed) endif elseif (doOnceBomb02 == 3) if (timerBomb02 <= 0) set doOnceBomb02 to 4 else if (firingFlagBomb02 == 1) if (fireTimerBomb02 <=0) VertibirdCallBomb02REFERENCE.fireWeapon DLC03VertibirdMissileLauncher set fireTimerBomb02 to .5 set firingFlagBomb02 to 2 else set fireTimerBomb02 to (fireTimerBomb02 - GetSecondsPassed) endif elseif (firingFlagBomb02 == 2) if (fireTimerBomb02 <=0) VertibirdCallBomb02REFERENCE.fireWeapon DLC03VertibirdMissileLauncher set fireTimerBomb02 to .5 set firingFlagBomb02 to 1 else set fireTimerBomb02 to (fireTimerBomb02 - GetSecondsPassed) endif endif set timerBomb02 to (timerBomb02 - GetSecondsPassed) endif set timerBomb02 to (timerBomb02 - GetSecondsPassed) endifEnd
