OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Hunted on 30 Aug 2002, 10:00:03
-
I really really really would like to find out how on this particular question.
I have tried the 'getPos' blah blah to raise the H or rather the Invisible H. To match the height of the building.
I know that it is possible to land it there (human flying). But the AI seems to disgree with elevated cement.
Any suggestions? Ideas? solutions?
*Offering beer to the chosen few* :cheers:
Hunted...
-
Hello,
I did that this way:
Ordered a chopper to hover above the required building (using a lot of waypoints and set speed to LIMITED to prevent chopper gaining speed), then when it is above the building ordered it to 'flyInHeight' of the building roof + 1..3m, and finally when it is hovering about 1..3m from the roof, i ordered it to turn the engine off.
Also i tried to make a chopper pickup script that calls a chopper and picks up a soldier (player). I wanted to make the chopper able to pickup the player from the roof of any building he is standing. But game reports that the soldier height from the ground is 0 (when he is standing on the roof of the building that is 10 m. high) so i couldn't calculate the distance for 'flyInHeight' command correctly. Even 'distance' command reports wrong distance. See "Distance calculation between objects" topic.
:-\
-
Thanks Rimak I will give that a try but this looks like yet another trial and error project ::)
I suppose you can limit the speed of the Chopper by using a command/script can't you?
I thought I saw it somewhere...this setspeed or something similar...
-
There is no such command 'setSpeed' :(
or something similar in official command reference.
I used a lots of waypoints (5-8) close to landing target to prevent chopper gaining speed.
-
ive dont it with ai landing on roof perfectly and dropping spec ops off :DD
-
There is no such command 'setSpeed' :(
or something similar in official command reference.
No I'm sure there is something similar.
What was it called... setSpeedMove or something that started with 'setSpeed...'
Also I wonder what the variables are for that command.
i.e. this setSpeedXXXX "Slow","1~4","1~100" etc
-
ive dont it with ai landing on roof perfectly and dropping spec ops off :DD
Would you care to enlighten us with your success??? :hmm:
C'mon sport, sharing is caring... ;D
-
group setSpeedMode mode
Operand types:
group: Object or Group
mode: String
Type of returned value:
None
Description:
Set group speed mode. Mode may be one of: "LIMITED" (half speed),"NORMAL" (full speed, maintain formation),"FULL" (do not wait for any other units in formation).
Example:
groupOne setSpeedMode "LIMITED"
You can set either LIMITED, NORMAL or FULL. I.E the same options as you can set with waypoints.
There is no SetSpeedMove, or SetSpeed command, unfortunately.
I don't think BIS ever meant for us to get this involved in scripting ;D
Cheers, KTottE
-
That's the one!
setSpeedMode
Thank you, KTottE.
-
ill put it up here as soon as i can. you will need the lil bird tho bacause its the only one that fits, and looks good. :P right now im going to bed. ;D
-
FYI. Choppers are a pain in the butt, so let me throw out a few hints that will save you some trial and error.
setspeedmode ONLY takes effect after the chopper starts another waypoint. So if he is on his way to a way point and you do set speedmode "limited" from a script, the chopper will not slow down until it starts its next waypoint.
If want you create waypoints with a script, use the "move" command. - like: chopper1 move [234,6664,0]
setspeedmode will NOT work with the domove or commandmove commands. You need to use waypoints, hence the move command. ;D