Jump to content

How to move a World Object


Elmatus

Recommended Posts

Posted

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 ) 

????

Posted

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

Posted

ooo now i understand yakuza... i dont understand befor.

but on the

removeWorldObject() 

what i have to write in ()? id ,radius or what?

  • 2 weeks later...
Posted

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:

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...