Home   Help Search Login Register  

Author Topic: Help Me please!!!  (Read 516 times)

0 Members and 1 Guest are viewing this topic.

Offline Killzone

  • Members
  • *
  • War is the true Enemy
Help Me please!!!
« on: 27 Sep 2004, 19:34:08 »

Is there a way using the onmapsingleclick to create a marker or an object where I click?

I want to be able to call for reinforcements (not in my group) using the Bas_blackhawks and the repel script.

My problem is when I call them and click on the map using the script below it goes right to repelling and the Heli never gets off the ground.

________________
Hint "Click Map"; onMapSingleClick {mh move _pos; leader mh sidechat "Yes Sir, Moving out"; variable1=true; onMapSingleClick {}};

 
mh exec "\BAS_mah60\FX\BAS_AIRope.sqs"

_____________-

I am looking for the heli to complete its flight before using the repel script.

As always Thanks  ;D
"Everyone dies so deal with it and move on"

                                                      ME

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:Help Me please!!!
« Reply #1 on: 27 Sep 2004, 21:01:11 »
You cannot create markers via scripts, but you can reposition an existing marker. Or, there are ways to detect when a user creates a marker on the map by double-clicking, which pre-date resistance.

As for the fastroping, I'm guessing that the script makes the guys jump out of the helo AS SOON as you execute the script. In that case, you would need to wait until the helo completes it's waypoint, and then do the rapel. I'm busy ATM, so I can't help you, but if you check the ed depot, there is a collection of helo scripts by Kammak that might work for what you are doing.
HANDSIGNALS COMMAND SYSTEM-- A realistic squad-control modification for OFP
kexp.org-- The best radio station in the world, right here at home! Listen to John Richards!

Offline Killzone

  • Members
  • *
  • War is the true Enemy
Re:Help Me please!!!
« Reply #2 on: 27 Sep 2004, 21:22:31 »
You have helped me. I never thought of repositioning a marker instead of trying to create one from scratch.  I can have the heli move to the marker and using the distance command execute the repel script. I cant try it at the momment but it may just work  ;D


Thanks  ;D
"Everyone dies so deal with it and move on"

                                                      ME

raymond6751

  • Guest
Re:Help Me please!!!
« Reply #3 on: 30 Sep 2004, 12:54:51 »
I'm glad you got help.  Use the setmarkerpos command.  Now you can help me.  I never heard of the onmapclick function that you mention.  

I've got the command reference, but must have missed a whole level of scripting info.  Where did you discover that and similar functions???

BTW:  "markerName" setmarkerpos [_newx,_newy,_newz]      or

"markerName" setmarkerpos [getpos player select 0 + 5, getpos player select 1 + 5,0]

Best to get player pos and break it up into xyz variables first though.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Help Me please!!!
« Reply #4 on: 30 Sep 2004, 13:33:54 »
onMapSingleClick is just a command, though it is one of the more advanced commands and is not recommended for beginners.    

It's in the comref.   I recommend the online version because there are helpful Comments and links.    Search the forum too.

I also recommend that you read through the comref like a book.   Don't stop to understand every command, but just get a feel for "the art of the possible".
« Last Edit: 30 Sep 2004, 13:35:36 by macguba »
Plenty of reviewed ArmA missions for you to play

raymond6751

  • Guest
Re:Help Me please!!!
« Reply #5 on: 30 Sep 2004, 13:52:47 »
"The art of the possible"  you are poetic !

I will revisit the comref with new enthusiasm.  Thank you.

BTW:  Hint.   If you place mines that blow up your own vehicles,  your own men will shoot you down !!