-
Posts
1,050 -
Joined
-
Last visited
Everything posted by ViRuZGamiing
-
How I like to work is with a state boolean there are other ways tho. local state = false function markerHitFunction() if (state) then moveGate = moveObject(gateName, timeInMillisec, x2, y2, z2) else moveGate = moveObject(gateName, timeInMillisec, x, y, z) -- Original x, y, z coordinates end if (moveGate) then state = not state; end end Didn't test I'm in class atm probably should work.
-
I've explained it here, look above. Also try using the LUA tags in the forum.
-
onMarkerHit is an event which is used in an addEventHandler, First you write the event name, then the marker name, then the function name mx, my, mz are marker coordinates r, g, b, a (red, green, blue, alpha (alpha is visibility)) x, y, z closed gate coordinates rx, ry, rz rotation of the gate timeInMillisec needs to be a time in milliseconds (1000ms is 1 sec) x2, y2, z2 location of the gate after moving. local markerName = createMarker(mx, my, mz, "cylinder", 1.0, r, g, b, 255) local gateName = createObject(model, x, y, z, rx, ry, rz) function markerHitFunction() moveObject(gateName, timeInMillisec, x2, y2, z2) end addEventHandler("onMarkerHit", markerName, markerHitFunction The gate will only open now not close. Understand this and we'll continue
-
Hey guys, Quick question, how can I access an XML File from the internet? URL that I mean; http://xml.buienradar.nl/ Thanks in advance
-
Yes I can but you'll have to make it yourself and I'll correct and help. Regards Billy
-
indeed, showchat is in here; https://wiki.multitheftauto.com/wiki/Co ... _and_CVars
-
You'll need these; createMarker onMarkerHit (or onClientMarkerHit) createObject moveObject
-
Yeah I've noticed it didn't work, I've just installed it, any suggestions? Or should I just get my hands on VMWare
-
Hey guys, I know it's not scripting but it's related to scripting. Is there another way of running 2 Clients (to test scripts) apart from a Virtual Machine? Kind regards, Billy
-
Did you set it as well? setElementData(hitElement, "x", value)
-
HOuse System !! HERE LINK to Download ! THE BEST EVER
ViRuZGamiing replied to #He[T]LeR's topic in Resources
Still it's kinda sad that you want us to pass adfly to make money for you to be able to watch some screenshots as for the script I do understand you'd like to make some money off of that. Regards Billy -
You've used the command name and not the argument, check addCommandHandler player playerSource, string commandName, [string arg1, string arg2, ...] So, function advertising ( thePlayer, ... ) Gotta be function advertising ( thePlayer, commandName, ...) Don't know if it'll then work, didn't test, just noticed this. Happy new year, Billy
-
Okay and suppose the player leaves during a timer, I guess I'd have to kill it then as well? Regards Billy
-
So what I said is indeed the best way of doing this? My code in the spoiler (It is working fine just wondering if it's the best way of killing a timer after a time Regards Billy
-
Greetings, I'm trying to work with timers and I have some questions about which is the best way to complete this idea. I have a timer that runs for 15 seconds and need to do something when that timer runs out, Should I give my timer a name and create another timer which kills timer 1 after 15 seconds and do what has to be done? If code is needed, I shall provide. Regards Billy
-
If i'm correct those are part of the TXD or DFF files
-
Now, if you need some suggestions i'll suggest making an image or taking an image from google but this one is kinda cartoony, if you are going to the Toll in Real Life you won't meet a Farmer in a wooden box. I would do something more Real Life looking. //ADDED anExample: This one I would use myself too, Regards Viruz
-
That one isn't from you, it's on the community, https://community.multitheftauto.com/index.php?p=gallery&s=show&pic=8736
-
so your childern from metaChildern return false, Show your XML.
-
Try using debugOutputString on metaXML and make, xmlNodeGetChildren(metaXML) a seperate variable. local metaXML = xmlLoadFile(":"..path.."/meta.xml") outputDebugString(tostring(metaXML)) if (metaXML) then local metaChildern = xmlNodeGetChildren(metaXML) outputDebugString(tostring(metaChildern)) for i, m in ipairs(metaChildern) do local metaXMLName = xmlNodeGetName(m) Then tell me what's in your /debugscript 3 regards viruz
-
Weapon Shop are made quite much, probably alot of people use them as DayZ is one of most famous gamemodes. Suggestion; Use DxDraw to create beautiful windows. You might add some effects like fading or images of the guns. Regards Viruz
-
If i'm right with what I read you want to have some stairs ingame. Then it's quite easy, just go into Map Editor place a stair of choise at location of choise and get the position, model, etc. All you need after is the scripting part; createObject addEventHandler -- onResourceStart