loopdk 92 Posted March 31, 2016 Is this poseble?? i am thinking og som kinde of code to put in INIT line Share this post Link to post Share on other sites
Guest Posted March 31, 2016 Ye it posseble meh friend. I tink u can spon a lokeble leysor on ze objekt u want to beh lokeyd. Share this post Link to post Share on other sites
sarogahtyp 1108 Posted March 31, 2016 i dont think so and much less without scripting. with a script u could place a soldier in cargo as long as it empty and delete it if someone embarks. edit: ok harmdast found away :) Share this post Link to post Share on other sites
sarogahtyp 1108 Posted March 31, 2016 and this is the code example for harmdasts soloution in the init line of the vehicle: if(isServer) then { lt = "LaserTargetW" createVehicle position this; lt attachTo [this, [0, 0, 1] ]; };or in a script which u call with the vehicle as parameter but the vehicle has to be local on the machine which execs the script. Empty vehicles which had no driver until script is executed r local at server: params ["_vec"]; _lt = "LaserTargetW" createVehicle position _vec; _lt attachTo [_vec, [0, 0, 1] ]; 1 Share this post Link to post Share on other sites
loopdk 92 Posted March 31, 2016 Great work. tnx!!!! gonna terst an return with answer :D Share this post Link to post Share on other sites
Guest Posted March 31, 2016 and this is the code example for harmdasts soloution in the init line of the vehicle: if(isServer) then { lt = "LaserTargetW" createVehicle position this; lt attachTo [this, [0, 0, 1] ]; };or in a script which u call with the vehicle as parameter but the vehicle has to be local on the machine which execs the script. Empty vehicles which had no driver until script is executed r local at server:params ["_vec"]; _lt = "LaserTargetW" createVehicle position _vec; _lt attachTo [_vec, [0, 0, 1] ]; Noice m8 dis is apprayciayteed. Gram are iz dead in dis topeec. Share this post Link to post Share on other sites
sarogahtyp 1108 Posted March 31, 2016 Noice m8 dis is apprayciayteed. Gram are iz dead in dis topeec. R u drunk? ;) Share this post Link to post Share on other sites
Guest Posted March 31, 2016 R u drunk? ;) Nope meh friend. Just fllowing da grammar of da topic creator. Share this post Link to post Share on other sites
SeeRocky 0 Posted March 31, 2016 Thank u guys for the script And dont drink buddy :D Im new on BI Forums and wanted to start a new topic on editing. How can i do this? Share this post Link to post Share on other sites
sarogahtyp 1108 Posted March 31, 2016 Thank u guys for the script And dont drink buddy :D Im new on BI Forums and wanted to start a new topic on editing. How can i do this? just try to increase ur post Count with usefull posts. if ur post Count is high enough (5-10 I think) then u r able to create a topic. 1 Share this post Link to post Share on other sites
loopdk 92 Posted March 31, 2016 Working fine with RHS units, now for testing with 3CB Share this post Link to post Share on other sites
SeeRocky 0 Posted March 31, 2016 just try to increase ur post Count with usefull posts. if ur post Count is high enough (5-10 I think) then u r able to create a topic. Thank u mate Share this post Link to post Share on other sites
Wiki 1558 Posted March 31, 2016 and this is the code example for harmdasts soloution in the init line of the vehicle: if(isServer) then { lt = "LaserTargetW" createVehicle position this; lt attachTo [this, [0, 0, 1] ]; };or in a script which u call with the vehicle as parameter but the vehicle has to be local on the machine which execs the script. Empty vehicles which had no driver until script is executed r local at server: params ["_vec"]; _lt = "LaserTargetW" createVehicle position _vec; _lt attachTo [_vec, [0, 0, 1] ]; Hi. I don't fully understand your post: both solutions will work in SP, right? Share this post Link to post Share on other sites
sarogahtyp 1108 Posted March 31, 2016 Hi. I don't fully understand your post: both solutions will work in SP, right? Yes, the difference is only if u r using vehicles init lines (1st cod) or a script (2nd code) to do that. Share this post Link to post Share on other sites
Wiki 1558 Posted March 31, 2016 Yes, the difference is only if u r using vehicles init lines (1st cod) or a script (2nd code) to do that. Ok, but I can use the 1st one via script, right? If I name my vehicle (like vehicle1) and replace "this" by "vehicle1". Share this post Link to post Share on other sites
Wiki 1558 Posted April 1, 2016 So, the script works - I only tested the first one. However, although I can lock the laser signal, but it doesn't appears red on the radar. Is it normal? Or is it just me? Thanks. Share this post Link to post Share on other sites
sarogahtyp 1108 Posted April 2, 2016 idk really but if its an empty vehicle then its no threat and therefore not red. Share this post Link to post Share on other sites