I want to make a Lua script on a gameobject, that lets you (say its a door) enter only if your the faction that the gameobject allows. HOW WOULD I GO ABOUT DOING THIS? sry shift button got stuck lol
I want to make a Lua script on a gameobject, that lets you (say its a door) enter only if your the faction that the gameobject allows. HOW WOULD I GO ABOUT DOING THIS? sry shift button got stuck lol
Note: You will need LCF for this to work which can be found here: svn://arcemu.info/arcscripts/Trunk/l.../0LCF_IncludesCode:function CPEACAE_Cage_asdasd_OnUseZXC(pMisc, event, player) local race = player:GetRace() if race == 1 or race == 3 or race == 4 or race == 7 or race == 11 then -- Alliance pMisc:SetByte(LCF.GAMEOBJECT_BYTES_1,0,0) -- Open door else -- Horde pMisc:SetByte(LCF.GAMEOBJECT_BYTES_1,0,1) -- Close door end end RegisterGameObjectEvent(gameobjectid, 4, "CPEACAE_Cage_asdasd_OnUseZXC")
I have LCF, needed it with another script i have xD, thanks alot tho stoneharry, +Rep