Rouzbeh Posted April 13, 2015 Posted April 13, 2015 hi, if i understand true, we can add objects in 2 ways , one with CreateObject in Resource and two is in a .map file, so whats is differnce between these? i want make some objects, vehicles and later use them in scripting(like no one can enter that and i need define elements), i confused a little...
Walid Posted April 13, 2015 Posted April 13, 2015 -- you can use it in map file createObject() -- it's a function so try to use tables if you want to create many objects. exmaple: local objects = { -- Object coordination here : model , x , y , z , rx , ry , rz } for i , v in pairs (objects) do -- You code here end Do not yield your back to your enemy, might feel something strange in your ass. Two things are infinite the universe and human stupidity and i'm not sure about the universe. UF: IsTextInGridList | GetGridListRowIndexFromText | Table.removeValue | removeHex | dxDrawTriangle Skype: SaSuki102 | About Me | Youtube channel | Lua Tips & Tricks | Lua Strings | Lua Tables | Lua Operators
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now