Jump to content

Recommended Posts

I use this to add an IFF light to units,

IRLight= "NVG_TargetC" createVehicle [0,0,0];
_unit removeMagazine "B_IR_Grenade";

IRLight attachTo [_unit, [0,-0.03,0.07], "LeftShoulder"];

Which is great because removeMagazine deletes the IR light object (the grenade) but not the light effect.

I also use,

light = "Land_PortableLight_single_F" createVehicle [0,0,0];
light attachTo [cockpit, [0,2,-1.35], "vez"];

To create a cabin light for vehicles. This is a hilarious solution though because it's like duct-taping a construction lamp to the vehicle.

How can I delete the world model for the lamp but leave the light source, like removeMagazine does for the IR grenade?

note: I know how to make lots of different kinds of lights but only lights attached to models seem to be able to keep up with attachTo on a vehicle (especially a jet).

This is the whole block,

cockpit = playerJET;
CPlight = "Land_PortableLight_single_F" createVehicle [0,0,0];
    CPlight attachTo [cockpit, [0,2,-1.35], "vez"]; 
    
    addMissionEventHandler ["Draw3D", {
    CPlight setVectorDirAndUp [
        (cockpit selectionPosition "pohon") vectorFromTo (cockpit selectionPosition "vez"),[0,0,0]
    ];

 

  • Like 3

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

×