0toks
Member-
Content Count
10 -
Joined
-
Last visited
-
Medals
Community Reputation
10 GoodAbout 0toks
-
Rank
Private
-
Yea the chopper does wait, i found that out through testing but waits high above in a hover. It doesnt wait in the "GET IN" position (just above the ground). Its insane, if i order my men in the chopper it comes back down then as soon as they are in it hovers high again. It wont wait for ME to get in but if i do manage to get on, it takes off to the next position i planned for on the map. I tried the flyInHeight command but it causes the chopper to crash itself into the ground.
-
My attempt at a script to make my own dynamic transport or map-click transport. Remember im very new to this and from my research this is what ive made up. I dont want to use the BI function/sec ops etc i want to script it for learning purposes. I have a mission with these; 1. Helicopter named chopper. 2. Trigger, radio alpha activated repeated. It's on act is nul=[] execVM "scripts\heli\dt.sqf"; 3. H Pad named pad. 4. Invisible H Pad named loc. 5. My player named toks. 6. Marker named lz. dt.sqf is //call chopper commands dt=true; titleText ["Indicate LZ on map by map-click","PLAIN DOWN"]; onMapSingleClick "loc setPos _pos;dt=false"; waitUntil {!dt}; "lz" setMarkerPos getPos loc; chopper move getPos loc; //land chopper commands player assignAsCargo chopper; waitUntil {chopper distance loc < 180}; chopper land "GET IN"; waitUntil {player in chopper}; nul=[] execVM "scripts\heli\repeat.sqf"; repeat.sqf is //repeat repeat=true; titleText ["Indicate LZ on map by map-click","PLAIN DOWN"]; onMapSingleClick "loc setPos _pos;repeat=false"; waitUntil {!repeat}; "lz" setMarkerPos getPos loc; chopper move getPos loc; nul=[] execVM "scripts\heli\drop.sqf"; drop.sqf is //drop off commands waitUntil {chopper distance loc < 180}; chopper land "GET OUT"; unassignVehicle toks; waitUntil {!(player in chopper)}; chopper move getpos pad; //chopper return to base commands waitUntil {chopper distance pad < 180}; chopper land "LAND"; Okay BUT THERES PROBLEMS. 1. Helicopter comes to my map-click, starts landing to its hover point then as soon as its near the ground it starts climbing again and then just hovers high above me. It (the helicopter) doesnt listen to my waitUntil commands... 2. I tried to use Code: chopper land "LAND" and i found sometimes the chopper actually lands and waits, sometimes it wont. Its all just too stressfull and inconsistant! During these times it does wait if my player jumps on it actually continues with the script, i click on my next destination and it moves there and goes to land but it then has another problem it wont wait for me to get out! AAAHHHH!!! Is this a bug in the game engine or is it my bad ammature scripting??
-
cheers dude thanks for the help!
-
yeah learning scripting now with vbs2 im green man!! Still learning cheers mate i'll try that out too
-
testing now cheers mate ---------- Post added at 08:42 PM ---------- Previous post was at 08:20 PM ---------- Still wont land, i used your files... is it my game?? ---------- Post added at 08:43 PM ---------- Previous post was at 08:42 PM ---------- I have the latest ACE 6 installer etc. Tried it on VBS2 1.3 same problem wont land...
-
Kool joshii i'll try that now, hope it works... ---------- Post added at 06:38 PM ---------- Previous post was at 05:45 PM ---------- Seriously the helicopter wont land....???? I have the exact same script the heli wont land??
-
wow thats a bit advanced for me!! im a learner ok cheers will try look around a bit more
-
Will try, cheers mate hope it goes well! ---------- Post added at 09:10 PM ---------- Previous post was at 08:41 PM ---------- Okay it works but the helicopter wont land to pick me up it just hovers... ?
-
I know the SECOP way, just would like to actually script it for my own learning. Can anyone do this??
-
Hey guys ive got an idea for a script but dont quite have the skill to pull it off. Basic concept i want is as follows; I want an SQF script when activated vior my radio alpha trigger does this; 'heli_1' is to depart my HQ, off 'pad_1' and fly to a map-click position on the map and wait for all members of my patrol to board. Once my patrol is on 'heli_1' it will then fly to another map-click position. Here it will wait until all my patrol is off then it will fly back to my HQ and land on a heli pad named 'pad_1'. I want this to be a repeated script, one i can call on anytime for heli/dynamic movement. 1. The helicopter is a blackhawk named 'heli_1'. 2. The heli pad is named 'pad_1'. 3. I have a trigger that is radio alpha, repeated. 4. My patrol consists of 6 members; my player (no name) and five others named 'a', 'b', 'c', 'd' and 'e'. SOMEONE PLEASE HELP :o