Result = CreateRibbonEffect(#Effect, MaterialID, NbChains, NbElements, Length)Description
Create a new ribbon trail effect. Once created, the effect has to be attached with AttachRibbonEffect(). It is possible to hide the effect with HideEffect().
#Effect The number to identify the new effect. #PB_Any can be used to auto-generate this number. MaterialID The material to apply on the ribbon trail. To get a valid 'MaterialID', use MaterialID(). NbChains Number of chains of the ribbon trail. The more chains, the more precise the ribbon will be. NbElements Number of elements per chains. The more elements, the more precise the ribbon will be. Length Maximum length, in world unit, of the ribbon. Once the length is reached the ribbon will be completely fade out.
Returns nonzero if the effect was created successfully and zero if there was an error. If #PB_Any was used as the #Effect parameter then the new generated number is returned on success.