bartje01 Posted March 17, 2011 Share Posted March 17, 2011 Hey guys. How can I set the interior of a zombie? It's like this now to set their locations locations = { {1676.63,-1717.06,13.54}, {1542.68,-1675,13.55}, {2179.56,-1770.89,96.36}, {2189.72,-1671.97,96.37}, {2189.72,-1671.97,96.37}, {1728.70,-1668.57,22.60} } for i,v in pairs(locations) do local zomb = createPed (v[1],v[2],v[3]) end So how to make it like {1728.70,-1668.57,22.60,interiorid} ? Link to comment
Castillo Posted March 17, 2011 Share Posted March 17, 2011 locations = { {1676.63,-1717.06,13.54,0}, {1542.68,-1675,13.55,0}, {2179.56,-1770.89,96.36,0}, {2189.72,-1671.97,96.37,0}, {2189.72,-1671.97,96.37,0}, {1728.70,-1668.57,22.60,0} } for i,v in pairs(locations) do local zomb = createPed (v[1],v[2],v[3]) setElementInterior(zomb,v[4]) end You can see that i added a new value named "0" which is the interior id. Link to comment
bartje01 Posted March 17, 2011 Author Share Posted March 17, 2011 Thanks. Works perfect 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