Jump to content

particles Play(), Pause() not working in Lua


Recommended Posts

I tried to call functions, but it don't work.

Or am i missing something ?

 

In fact the partciles effect is visually in the scene panel in the hierarchy character bones :

It is placed as child of a bone.

 

By code i do :

 

local fireP = self.entity:FindChild("fireL")
if fireP ~= nil then
fireP:Pause()
end

 

The child is found, but Lua compiler say nil value trying to call Play() ?

 

I dind't find in Particle.h Play or Pause functions ?

 

Am i doing something wrong ?

Stop toying and make games

Link to comment
Share on other sites

  • 4 weeks later...

The commands are exposed to Lua:

virtual void Pause();//lua

virtual void Play();//lua

 

Please post an example that shows the problem.

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...