Jump to content
Sign in to follow this  
tambovskya

Support with attachTo:

Recommended Posts

Hi,

I am trying to figure out how to make a attachTo script that will allow a player to attach C4 to a vehicle.

The way i'm trying to do this is:

Vehicles Init [vehicle1]:

_genAct = generator addAction ["Attach C4", "attach_c4.sqf"]

attach_c4.sqf:

I'm not sure how to do this, because it needs to take DemoCharge_Remote_Mag out of the players inventory and attach it to the vehicle. Maybe " DemoCharge_Remote_Mag attachTo [Vehicle1,[0,0,1]]; ". I'm not sure.

Is it possible to make it universal? I mean without making a script for each vehicle, maybe nearestObject [_x, "LandVehicle" ?

Edited by tambovskya

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
Sign in to follow this  

×