public function createScript($params)
    {
        $className = $this->className;

        $filePath = $this->fileLocator->locate('@'.$this->relativePath);

        return new $className($filePath, $params);
    }
public function createScript($params)
    {
        $className = $this->className;

        $filePath = $this->fileLocator->locate('@'.$this->relativePath);

        return new $className($filePath, $params);
    }
public function createScript ( $ params ) { $ className = $ this -> className ; $ filePath = $ this -> fileLocator -> locate ( '@' . $ this -> relativePath ) ; return new $ className ( $ filePath , $ params ) ; }
Create an instance of script

@param $params

@return ManiaScript
Create an instance of script