Home   Help Search Login Register  

Author Topic: To those who wants a chopper to land using AI.  (Read 1136 times)

0 Members and 2 Guests are viewing this topic.

Gumby

  • Guest
To those who wants a chopper to land using AI.
« on: 23 Feb 2003, 09:04:15 »

This explanation was passed on to me from Knut Erik..  And since I saw alot of topics here concerning, the use of AI when landing a chopper..
I felt like passing on the wisdom.

So here it is..  
Combined with the use of waypoint..

Step 1: The init. field of the chopper ( name of the chopper is HELO)

this addaction ["land HELO","land.sqs"]

Step 2: Creating the script LAND.SQS. Place the script in the missionfolder.

:this is the script to make HELO land.

HELO land "land"

exit

Step 3: In the waypoint were you want HELO to land, type the following in the On Activation field.

[] exec "land.sqs"


Great thanks to LCD and Knut Erik for their assistance, solving my problem. Now it is time to share to the newbies. Enjoy!!!!!

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:To those who wants a chopper to land using AI.
« Reply #1 on: 23 Feb 2003, 10:38:22 »
Quote
:this is the script to make HELO land.
will propably give you an error of some sort.  should use ;  instead of  :

Quote
Step 1: The init. field of the chopper ( name of the chopper is HELO)

this addaction ["land HELO","land.sqs"]
I don't see the relevance of this addaction.

+ to make the usage more universal you might want to consider executing the script like this

[choppername] exec "land.sqs"

and adding in the script

_helo = _this select 0

and replacing HELO with _helo like this

_helo land "land"
Not all is lost.

Gumby

  • Guest
Re:To those who wants a chopper to land using AI.
« Reply #2 on: 23 Feb 2003, 14:16:43 »
 
Yes of course, a little topy error

regarding HElO. it was simple to state the facts that this slot is reserved for the choppername..

And another mistake with this little script is the acuracy. Havent figured that one out yet... Though I am trying, so feel free to share If you know how to combine the landing with a spot..

Somehow the chopper automaticaly lands at a certain spot, no matter what!!!
Fucking irritating.


Offline LCD

  • Former Staff
  • ****
    • Everon Cartel
Re:To those who wants a chopper to land using AI.
« Reply #3 on: 23 Feb 2003, 14:37:29 »
put invisible heli pad were u want da helo 2 land ;D

da name is somin like - H (invisible)

or if u want u can change da script 2 somthin like dat  ;D

Code: [Select]
_helo = _this select 0
_got = false
hint "Click on map to choose landing position"
onMapSingleClick {helipad setpos _pos;_got = true}
@ _got
hint "Landing Position aquired"
_halo land "land"
exit

but u need a inivisible helipad called helipad ;D

LCD OUT
"guess being the community has downsides .." - cheetah
Help Perfecting Da Next Best Thing - O-Team Beta