Jump to content

Spawned objects and gravity


AcidbRain

Recommended Posts

I have this piece of code running client-side:

local x, y, z = getElementPosition(getLocalPlayer())
local boulder = createObject(1303, x, y, z + 10)
setElementVelocity(boulder, 0.0, 0.0, -0.1)

The fact is that the spawned boulder doesn't fall to the ground, even with my attempt to nudge it with setElementVelocity (which, by the way, returns true).

What else can I do?

Link to comment

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...