Jump to content
loopdk

Make a "empty" object lockeble for missils

Recommended Posts

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

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

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

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] ];
  • Like 1

Share this post


Link to post
Share on other sites

Great work.  tnx!!!!

 

gonna terst an return with answer :D

Share this post


Link to post
Share on other sites
Guest

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

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

R u drunk? ;)

Nope meh friend. Just fllowing da grammar of da topic creator.

Share this post


Link to post
Share on other sites

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

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.

  • Like 1

Share this post


Link to post
Share on other sites

Working fine with RHS units, now for testing with 3CB

Share this post


Link to post
Share on other sites

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

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

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

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

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

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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×