How do I.......

Blitz3D Forums/Blitz3D Beginners Area/How do I.......

Wrath_of_Zeus(Posted 2003) [#1]
Pass a pivot to a function?

I get NaN as the x, y, and z of the pivot when I try.


Nibble(Posted 2003) [#2]
Name your topics better. I think there's a rule about it.
Post the code that has errors.

This should work:
[CODE]
mypivot = CreatePivot()
doStuff(mypivot)

function doStuff(pivot)
print "Pivot X is: " + EntityX(pivot)
end function
[/CODE]


Wrath_of_Zeus(Posted 2003) [#3]
Very sorry about the name of the topic, I'll try to edit it.

That's pretty much what I tried, perhaps I didn't create the pivot correctly.