alexdeadite Posted May 24, 2016 Share Posted May 24, 2016 (edited) my script is the same that a aliendisintegrator changing anything why dont compile? ScriptName radioactivityDisintegrationEffectScript Float TimerShort DoOnceShort IsPile Begin ScriptEffectStartSetCriticalStage DisintegrateStartPMS RadioactivityFXShaderPMS effectspellradioactivitySet Timer to 1.8Set DoOnce to 0Set IsPile to 0End Begin ScriptEffectUpdateIf DoOnce == 0If IsPile == 0If Timer <= 0.5RadiactivityAshPileSet IsPile to 1EndIfEndIf If Timer <= 0 SetCriticalStage DisintegrateEndSMS RadioactivityFXShaderSMS effectspellRadioactivitySet DoOnce to 1EndIfSet Timer to (Timer - GetSecondsPassed)EndIfEnd Edited May 24, 2016 by alexdeadite Link to comment Share on other sites More sharing options...
Ladez Posted May 25, 2016 Share Posted May 25, 2016 When posting code on the forum, it's preferable to do so within code tags. This uses a fixed-width font and preserves indentation, which makes it more readable. Please use this button in the future: As for why it won't save, you've replaced the function call AttachAshPile with a call to a non-existing function, RadiactivityAshPile. I'm not sure what your script is supposed to do, but this isn't the way to go about it. Other reasons it might fail is if the forms RadioactivityFXShader or effectspellradioactivity doesn't exist. Link to comment Share on other sites More sharing options...
alexdeadite Posted May 25, 2016 Author Share Posted May 25, 2016 but i created it...idontunderstand what dont funck... Link to comment Share on other sites More sharing options...
Ladez Posted May 25, 2016 Share Posted May 25, 2016 The line RadiactivityAshPile is interpreted by the compiler as a function call, just like AttachAshPile in the original script is a call to a function that places an ash pile at the calling actor. Your problem is that no function by the name RadiactivityAshPile exists in the game. The compiler doesn't know what you want to do, so it won't save the script. I recommend that you take a look at a scripting tutorial to get the hang of how things work. Link to comment Share on other sites More sharing options...
Recommended Posts