mtasa吧 关注:4,783贴子:216,270
  • 25回复贴,共1

问个问题,如何在MTASA中编写materialfunction

只看楼主收藏回复

rt


IP属地:广西1楼2018-10-23 09:45回复
    他就是喜欢在贴吧**


    IP属地:新加坡来自Android客户端3楼2018-10-23 17:10
    收起回复
      二楼去哪了


      来自Android客户端4楼2018-10-24 10:27
      回复
        祝福你
        question = {"You are","YOU","U","C","F"}
        function question:onStupidHasAQuestion()
        local sentence =""
        local name ="stupid"
        table.insert(question,"K")
        for k ,v in ipairs(question) do
        if v == "You are" then
        sentence = v.."totally a "..name..","..self[k+4]..self[k+2]..self[k+3]..self[5].." "..self[math.random(2,2)]
        outputServerLog(sentence)
        end
        end
        end
        AddEventHandler("onStupidHasAQuestion",root,question:onStupidHasAQuestion)


        IP属地:澳大利亚5楼2018-10-24 14:20
        收起回复
          stupid has a question


          IP属地:新加坡来自Android客户端6楼2018-10-27 19:59
          回复
            在mta中没有material function这个概念,不过材质是可以通过HLSL进行修改,所以你要搞和材质相关的,需要通过HLSL和Lua来搭建框架


            IP属地:浙江8楼2018-10-31 19:55
            收起回复
              骂人不用DGS怎么凸显得出有B格呢
              loadstring(exports.dgs:dgsImportOOPClass())()
              local label = DGSClass:createLabel(0,0,1,1,"Stupid",true)
              label.rightbottom = {"center","center"}
              label:setProperty("functions",[[
              local tick = (math.cos( (getTickCount()/10%360)/180*math.pi)+1)*5+5
              dgsSetProperty(self,"textSize",{tick,tick})
              ]])


              IP属地:浙江11楼2018-11-01 12:06
              收起回复
                过气美工来围观


                IP属地:山东来自手机贴吧12楼2018-11-01 13:08
                收起回复