

ARMA3456
Member-
Content Count
8 -
Joined
-
Last visited
-
Medals
Community Reputation
0 NeutralAbout ARMA3456
-
Rank
Private
Recent Profile Visitors
The recent visitors block is disabled and is not being shown to other users.
-
Attaching spawned vehicle to player
ARMA3456 replied to ARMA3456's topic in ARMA 3 - MISSION EDITING & SCRIPTING
When I use this script on smaller objects for example: Land_Track_01_switch_F I can't seem to drop or de-spawn the item. There's no option that appears. I've tested it for quite a while as any objects most likely smaller than a normal car/suv can't be dropped or despawned. -
Attaching spawned vehicle to player
ARMA3456 replied to ARMA3456's topic in ARMA 3 - MISSION EDITING & SCRIPTING
Thank you very much. I appreciate it. Thanks for taking your time to provide the code. -
Attaching spawned vehicle to player
ARMA3456 replied to ARMA3456's topic in ARMA 3 - MISSION EDITING & SCRIPTING
It's just addAction. I'm able to attach the vehicle easily with this code: _expl1 = "O_Truck_02_transport_F" createVehicle (position player); _expl1 attachTo [player, [-0.1,0.1,1.15],"Pelvis"]; But this means when I click on the stand first addAction option it'll automatically make me attach to the truck The way it was previously done before: 1) I would use the stand addAction to spawn the vehicle 2) The vehicle's first addAction allows me to make it de-spawn 3) i would like the 2nd option to be that it'll attach to me This is the script I'm using so far, it's on my first post too: _expl1 = "O_Truck_02_transport_F" createVehicle position player; _expl1 addAction ["De-spawn vehicle",{ deleteVehicle (_this select 0) },nil,10,false,true,"", "_target distance stand < 15"]; -
Attaching spawned vehicle to player
ARMA3456 replied to ARMA3456's topic in ARMA 3 - MISSION EDITING & SCRIPTING
I'm not entirely sure. I've been able to achieve attaching the vehicle to the player. But I'm trying to add a second action where I can physically attach that vehicle to me. But I'm not sure how to achieve this. -
Attaching spawned vehicle to player
ARMA3456 replied to ARMA3456's topic in ARMA 3 - MISSION EDITING & SCRIPTING
I'm creating a strong man lifting contest where different vehicles can only be attached to specifics players and they would carry it along a fish line. -
Attaching spawned vehicle to player
ARMA3456 replied to ARMA3456's topic in ARMA 3 - MISSION EDITING & SCRIPTING
I'm basically spawning a truck. When it spawns it has an action menu on it and the first option is to despawn it. I'm trying to achieve the 2nd option of the action menu to attach that vehicle to the player. -
I have a stand In the stand init: stand addAction["Spawn", "script.sqf"]; In the script.sqf: The script below provided by pierremgi allows me to be able to despawn the vehicle within 15 metres _expl1 = "O_Truck_02_transport_F" createVehicle position player; _expl1 addAction ["De-spawn vehicle",{ deleteVehicle (_this select 0) },nil,10,false,true,"", "_target distance stand < 15"]; How can I make it so that the second option on the truck's action menu allows it to attach to the player? I can't seem to get that working. I've looked at this, but can't seem to get the two working without errors: https://community.bistudio.com/wiki/attachTo Can someone put me on the right track?
-
Spawn and De-spawn vehicle script help
ARMA3456 posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
I've created an Action Menu on a stand init contains: stand addAction["Spawn vehicle", "script.sqf"]; stand addAction["De-spawn vehicle", "script2.sqf"]; My script.sqf contains: _expl1 = "O_Truck_02_transport_F" createVehicle position player; How can I make it so when I select the 2nd option on the Action on the stand it De-spawns the vehicle I've tried this but this doesn't work: script2.sqf: deleteVehicle O_Truck_02_transport_F; How can I achieve this?