bronson 0 Posted December 27, 2010 hey guys as the topic says,im trying to create a smokeshell on the roof of the villa so a chopper will land there for a cinematic.ive been using this code in a trigger:lz = "SmokeShellGreen" createVehicle position smokepos;smokepos setPos (getPos smokepos);lz setpos [getPos smokepos select 0,getPos smokepos select 1,10]; (smokepos being the name of an object i placed on the roof) it works but my problem is the created smokeshell keeps falling through the roof and all floors untill the bottom one and the smoke works like normal.is there any simpler way of doing this,ive tried using game logics my only next try is to get a unit to throw it. cheers for any advice Brons Share this post Link to post Share on other sites
Master85 1 Posted December 27, 2010 that's a known bug. You can use attachTo to attach the smokeshell to an object, e.g. lz attachTo [smokepos, [0,0,0]] Share this post Link to post Share on other sites
bronson 0 Posted December 27, 2010 ok ill try that way thanks :) Share this post Link to post Share on other sites
soldier2390 0 Posted December 29, 2010 (edited) or you can do what i do to add to the realisim, and have an actual guy pop a smoke when the helo comes in for approach! that can be set up very easly without scripts, just using a few triggers and action commands! now im at work so i dont have the game in front of me, plus i have not done this in awhile but iirc... do it like this have a unit named man1(can be any name) on the roof or give him a way point to move to roof, then have a trigger set up inbetween the approaching helo and the man poping smoke(man1). just adjust the trigger to where you want the guy to pop smoke in relations to the approaching helo! usually in rl we would pop smoke before the helo is in sight, cause most time what happens is the helo will call in requesting smoke to be thrown, then the pilots will radio back the color of your smoke (like this, Pilot: approaching LZ...requesting smoke on your position, over. Soldier: roger popping smoke. Pilot: roger got eyes on green smoke over?) now thats not entirely accurate but its been awhile since iv seen it done in person! Next step, make sure the trigger between the helo and man1 is set to go off when the helo passes throw the trigger, or i guess if you want you can set it off by radio! and create a invisable marker at the location of where u want the smoke to be throw at lets just name it "SmokePos". finially, not too sure if this should go in the Onact of the trigger or in a way point of the unit(man1): man1 dotarget "SmokePos"; man1 dofire "smokeshellredmuzzle"; this should work, i have done this all the time before and should work on a roof as iv done that too(not tested on the vila roof tho)! ill check back later and if it doesnt work ill up load and very small and easy to use demo mission, and no scripts needed but a maker and trigger(you may not even need to use the command to make him target the marker, it may work with just the doFire command!) EDIT: oh and i also love to incorporate the unit(man1) doing the "guiding helo animations" aka "Helo Landing dance" lol used to guide a helo into position! if you are intrested in that but need help on how to do that let me know ill try to explain or wait till i send and uploaded demo mission on here to help ya! goodluck Dave, Edited December 29, 2010 by soldier2390 Share this post Link to post Share on other sites
Evil_Echo 11 Posted December 29, 2010 Have done the trick of having a man on the ground lob smoke and the AI pilot searching for smoke. Works well. Share this post Link to post Share on other sites
bronson 0 Posted December 30, 2010 yeh i have the helo animation in already,but thank u heaps for advice.ill try this method out.cheers and happy new year for 2011! Share this post Link to post Share on other sites