Elmatus Posted October 18, 2012 Share Posted October 18, 2012 I want to do a base with tunnels under the map, and i was asking How to move a WorldObject, for example: move de CJ's house for entry ther. It can be: function () theTunnel myTunnel = moveWorldObject ( id, radius, x, y, z ) ???? Link to comment
BorderLine Posted October 18, 2012 Share Posted October 18, 2012 that function dont exist. you can use removeWorldModel () to delete cj house then use createObject () to create cj house in same place then use moveObject () to move cj house then use like gate Link to comment
myonlake Posted October 18, 2012 Share Posted October 18, 2012 In other words, just check out the scripting introduction here: https://wiki.multitheftauto.com/wiki/Scr ... troduction. And tutorials here: viewforum.php?f=148. Link to comment
Elmatus Posted October 18, 2012 Author Share Posted October 18, 2012 But i can use moveObject () With the original CJ's house? And if i can, what i have to put there? (id, radius x y z) Link to comment
Elmatus Posted October 19, 2012 Author Share Posted October 19, 2012 ooo now i understand yakuza... i dont understand befor. but on the removeWorldObject() what i have to write in ()? id ,radius or what? Link to comment
TAPL Posted October 19, 2012 Share Posted October 19, 2012 ooo now i understand yakuza... i dont understand befor.but on the removeWorldObject() what i have to write in ()? id ,radius or what? Read the wiki and you will know. https://wiki.multitheftauto.com/wiki/RemoveWorldModel Link to comment
Elmatus Posted October 28, 2012 Author Share Posted October 28, 2012 I used: resourceRoot = getResourceRootElement() function removeObject () removeWorldModel(16010,1000,-569.70001220703,2593.5,56.299999237061) end addEventHandler ( "onResourceStart", getRootElement(), removeObject ) But it doesn't delate the object, help D: Link to comment
Renkon Posted October 28, 2012 Share Posted October 28, 2012 Delete also the LOD model Link to comment
Elmatus Posted October 29, 2012 Author Share Posted October 29, 2012 How i do that Its: setLODElement ( 11545, 0 ) ??? "11545" its the ID of the object "0" Its the alpha Or how i have to write it Link to comment
Castillo Posted October 29, 2012 Share Posted October 29, 2012 That function does not exist. 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