Joaovit13

Duvida por IsElementWithinPickup

Recommended Posts

	if isElementWithinPickup(player, pickup) then 
Estou com duvida nisso no script ta falando que ta dando erro, nessa linha falando que ta a nil value

 

Share this post


Link to post
Posted (edited)
30 minutes ago, Joaovit13 said:

	if isElementWithinPickup(player, pickup) then 
Estou com duvida nisso no script ta falando que ta dando erro, nessa linha falando que ta a nil value

 

isElementWithinPickup é uma função util você pegou o código na wiki  e definiu  um valor a "pickup" ?

Edited by Eder

Share this post


Link to post
local theShape = getElementColShape( pickup )
isElementWithinColShape( thePlayer, theShape )

Não precisa dessa função, só usar isso ^

Share this post


Link to post

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.