Rouzbeh Posted April 13, 2015 Share 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... Link to comment
Walid Posted April 13, 2015 Share 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 Link to comment
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