KiCHo666 Posted July 17, 2014 Author Share Posted July 17, 2014 (edited) No, no dice. :/This is how whole activator script looks like:SCN MTActivatorScript short iButtonshort iRepairMenushort iMap short bNightref rActivator Begin OnActivate If GetActionRef == Player && Player.IsInCombat == 0If MTCurrentCondition < 0Set MTCurrentCondition to 0elseif MTCurrentFuel < 0Set MTCurrentFuel to 0EndifShowMessage MTMenuMessage MTCurrentFuel MTCurrentConditionElseIf GetActionRef == Player && Player.IsInCombat == 1ShowMessage MTCombatMessageendifEnd Begin GameMode if bNight != ((GameHour > 19) || (GameHour < 5)) set bNight to (bNight == 0) set rActivator to MTMojaveTravelActivator if bNight SetModelPathEX "vehicles\UniqueMotorcycle\UniqueMotorcycleNight.nif" rActivator else SetModelPathEX "vehicles\UniqueMotorcycle\UniqueMotorcycle.nif" rActivator endif Disable Enable 0endif set iButton to GetButtonPressed if iButton == -1 ; No button has been pressed yetReturnelseif iRepairMenu == 0 if iButton == 0 ; TravelIf MTCurrentFuel > 0 && MTCurrentCondition > 0 ShowMessage MTSelectDestinationMessageSet iMap to 1elseif MTCurrentFuel == 0ShowMessage MTTankEmptyelseif MTCurrentCondition == 0ShowMessage MTLowConditionendif elseif iButton == 1 ; RefuelIf MTCurrentFuel < 100If player.GetItemCount MTFuel > 0PlaySound WPNFlamerReload 1Player.removeItem MTFuel 1Set MTCurrentFuel to ( MTCurrentFuel + 10 )PlaySound WPNFlamerJam 1If MTCurrentFuel > 100set MTCurrentFuel to 100endifShowMessage MTMenuMessage MTCurrentFuel MTCurrentConditionReturnelseShowMessage MTNoFuelendifelseShowMessage MTTankFullendif elseif iButton == 2 ; RepairShowMessage MTRepairMenu MTCurrentConditionSet iRepairMenu to 1elseif iButton == 3 ; Store ItemsMTTrunkRef.Activate Playerendif elseif iRepairMenu == 1 if iButton == 0 ; Gas TankIf MTCurrentCondition >= 100ShowMessage MTFullConditionShowMessage MTMenuMessage MTCurrentFuel MTCurrentConditionset iRepairMenu to 0ReturnelsePlayer.RemoveItem MotorCycleGasTank 1PlaySound UIRepairWeapon 1Set MTCurrentCondition to ( MTCurrentCondition + (Player.GetActorValue Repair/5 + 10) )If MTCurrentCondition > 100Set MTCurrentCondition to 100endifendifShowMessage MTRepairMenu MTCurrentConditionReturnelseif iButton == 1 ; HandbrakeIf MTCurrentCondition >= 100ShowMessage MTFullConditionShowMessage MTMenuMessage MTCurrentFuel MTCurrentConditionset iRepairMenu to 0ReturnelsePlayer.RemoveItem MotorCycleHandbrake 1PlaySound UIRepairWeapon 1Set MTCurrentCondition to ( MTCurrentCondition + (Player.GetActorValue Repair/10 + 5) )If MTCurrentCondition > 100Set MTCurrentCondition to 100endifendifShowMessage MTRepairMenu MTCurrentConditionReturnelseif iButton == 2 ; ConductorIf MTCurrentCondition >= 100ShowMessage MTFullConditionShowMessage MTMenuMessage MTCurrentFuel MTCurrentConditionset iRepairMenu to 0ReturnelsePlayer.RemoveItem Conductor 1PlaySound UIRepairWeapon 1Set MTCurrentCondition to ( MTCurrentCondition + Player.GetActorValue Repair/4 )If MTCurrentCondition > 100Set MTCurrentCondition to 100endifendifShowMessage MTRepairMenu MTCurrentConditionReturnelseif iButton == 3 ; Fission BatteryIf MTCurrentCondition >= 100ShowMessage MTFullConditionShowMessage MTMenuMessage MTCurrentFuel MTCurrentConditionset iRepairMenu to 0ReturnelsePlayer.RemoveItem FissionBattery 1 PlaySound UIRepairWeapon 1Set MTCurrentCondition to ( MTCurrentCondition + Player.GetActorValue Repair/3 )If MTCurrentCondition > 100Set MTCurrentCondition to 100endifendifShowMessage MTRepairMenu MTCurrentConditionReturn elseif iButton == 4 ; Scrap MetalIf MTCurrentCondition >= 100ShowMessage MTFullConditionShowMessage MTMenuMessage MTCurrentFuel MTCurrentConditionset iRepairMenu to 0ReturnelsePlayer.RemoveItem SpareParts 1PlaySound UIRepairWeapon 1Set MTCurrentCondition to ( MTCurrentCondition + Player.GetActorValue Repair/10 )If MTCurrentCondition > 100Set MTCurrentCondition to 100endifendifShowMessage MTRepairMenu MTCurrentConditionReturnelseif iButton == 5 ; Scrap ElectronicsIf MTCurrentCondition >= 100ShowMessage MTFullConditionShowMessage MTMenuMessage MTCurrentFuel MTCurrentConditionset iRepairMenu to 0ReturnelsePlayer.RemoveItem ScrapElectronics 1PlaySound UIRepairWeapon 1Set MTCurrentCondition to ( MTCurrentCondition + Player.GetActorValue Repair/10 )If MTCurrentCondition > 100Set MTCurrentCondition to 100endifendifShowMessage MTRepairMenu MTCurrentConditionReturnelseif iButton == 6 ; WonderglueIf MTCurrentCondition >= 100ShowMessage MTFullConditionShowMessage MTMenuMessage MTCurrentFuel MTCurrentConditionset iRepairMenu to 0ReturnelsePlayer.RemoveItem Wonderglue 1PlaySound UIRepairWeapon 1Set MTCurrentCondition to ( MTCurrentCondition + Player.GetActorValue Repair/10 )If MTCurrentCondition > 100Set MTCurrentCondition to 100endifendifShowMessage MTRepairMenu MTCurrentConditionReturnelseif iButton == 7 ; DuctTapeIf MTCurrentCondition >= 100ShowMessage MTFullConditionShowMessage MTMenuMessage MTCurrentFuel MTCurrentConditionset iRepairMenu to 0ReturnelsePlayer.RemoveItem DuctTape 1PlaySound UIRepairWeapon 1Set MTCurrentCondition to ( MTCurrentCondition + Player.GetActorValue Repair/10 )If MTCurrentCondition > 100Set MTCurrentCondition to 100endifendifShowMessage MTRepairMenu MTCurrentConditionReturnelseif iButton == 8 ; FinshedShowMessage MTMenuMessage MTCurrentFuel MTCurrentConditionset iRepairMenu to 0Returnendif endif If iMap == 1set iMap to 0TapControl 14; Player.CastImmediateOnSelf MojaveTravelEffectDummyPlayer.CastImmediateOnSelf MTActorEffectendif End The bolded part is where I put script you wrote.If that will not work, would it be possible to make Quest and use that script?I already tryed that, but it won't accept it as a quest, only as an object. So I guess something has to be changed. Edited July 17, 2014 by KiCHo666 Link to comment Share on other sites More sharing options...
JJ2198 Posted July 17, 2014 Share Posted July 17, 2014 I believe the model wont update if you have enable and disable in the same frame. Link to comment Share on other sites More sharing options...
weijiesen Posted August 18, 2014 Share Posted August 18, 2014 HOLY CRAP all of you totally are overthinking this BIG TIME wow.Simply attach a Forward/Backward NiController to the Material, then in script use: if bNight != ((GameHour > 19) || (GameHour < 5)) set bNight to (bNight == 0) set rActivator to MTMojaveTravelActivator if bNight Playgroup.Forward rActivator else Playgroup.Backward rActivator endif Disable Enable 0 endif That's all there is to it.Playgroups are your friend. Use them.Doing this would be only a few mere minutes of work an effort, and would give you a very pleasing visual that you desire. Link to comment Share on other sites More sharing options...
Recommended Posts