ManDay 0 Posted June 28, 2007 Sorry for another topic I never-ever did anything with particles but I want to use it this time. I read the biki so i though my creation would work: _pos_pos = getPos _this; drop[ [ "\Ca\Data\Cl_basic.p3d",8,0,1 ],"","Billboard",1,10,_pos_pos,[ 0,0,0.1 ],0,0,1,0, [40],[ [ 1,1,1,1 ] ],[ 0.5 ], 0,0,"","","" ]; (ran from a street cone). But it didnt. What is wrong? Thanks already Share this post Link to post Share on other sites
5133p39 16 Posted June 28, 2007 The drop command probably still works in ArmA, but maybe it would be better using the new particle source commands: setParticleCircle setParticleParams setParticleRandom setDropInterval ParticleArray ParticleTemplates - this link contains few complete examples. Share this post Link to post Share on other sites
ColonelSandersLite 0 Posted June 29, 2007 Yes, they're much less work. Also, you may want to check out my particle parameter utility which lets you easilly create what you're wanting to make. Share this post Link to post Share on other sites
ManDay 0 Posted June 29, 2007 Yes, thank you, I know about the PS-Functions already. But do you have any idea what is wrong with the drop-command? Share this post Link to post Share on other sites
ColonelSandersLite 0 Posted June 29, 2007 By "ran from a street cone" do you mean that the whole thing there is in the street cone's init line? Well, for starters, what is "_this"? I'm guessing it's the cone. If you're calling something from the cone's init line, it should be plain "this". Also, drop effects may not work on initialisation, it may have to be after a delay. If you insist on using the old drop command for some reason, it should be noted that drop should be run in a loop or some such structure, as you literally have to create every particle by hand. You do have the right number of parameters at least. I can't vouch for their correctness though, I didn't look at that in too much detail. The above question needs to be answered first. Share this post Link to post Share on other sites
ManDay 0 Posted June 29, 2007 The thing is run from the init-line indeed, but its ran as a script so "_this" in this case is correct. Yes, it's the right number of parms - i don't get an error. Of course I will run the drop-cmd in a loop somewhen - but just for testing purpose i only wanted to create one single particle Share this post Link to post Share on other sites
ColonelSandersLite 0 Posted June 29, 2007 Shouldn't that be "_this select 0" then? Assuming you're passing the script somthing like this from the cone's init line: [this] exec "myscript"; Also, try adding a small delay at the top of your script and see if that sorts it out. Just in case, delays in sqs look like this (in seconds): ~0.5 And in sqf look like this: sleep (0.5); Share this post Link to post Share on other sites
ManDay 0 Posted June 29, 2007 Shouldn't that be "_this select 0" then?Assuming you're passing the script somthing like this from the cone's init line: [this] exec "myscript"; Also, try adding a small delay at the top of your script and see if that sorts it out. Just in case, delays in sqs look like this (in seconds): ~0.5 And in sqf look like this: sleep (0.5); Ok - i'll try it with a delay later. PS: no, if the CS is "this execVM ...;" then it will be _this. Share this post Link to post Share on other sites