You are using the legacy API I see. sim.partCreate returns an index which you can then modify. Here is an example. I did not test this but it should give you an idea on what I mean. elemHandle = sim.partCreate(-1, x+math.random(-1,1),y+math.random(-1,1),DEFAULT_PT_FIRE)
sim.partProperty(elemHandle,'temp', 4724.15)
I recommend doing it this way as it is very similar to how other proper APIs manipulate objects (i.e. the Win32 API)
jacob1:
tpt.create
The API that is tpt.* is called the legacy which in my mind implies that is deprecated. Why do people still use it then?