Home   Help Search Login Register  

Author Topic: getmarkerpos: name or text?  (Read 874 times)

0 Members and 1 Guest are viewing this topic.

Baphomet

  • Guest
getmarkerpos: name or text?
« on: 26 Feb 2003, 04:13:15 »
I want to make a script that uses the getmarkerpos command as a target for artillery, originally I wanted to be able to lay down a marker while in the game and name it something and depending on the name it would serve as a marker for whatever artillery you wanted to lay down. The problem is I don't think marker text counts... I don't know how to specify marker names in game. I don't think you can.

Any help understanding this would be appreciated.

CrashnBurn

  • Guest
Re:getmarkerpos: name or text?
« Reply #1 on: 26 Feb 2003, 04:52:12 »
Maybe this will help.

How to use real-time moveable and user-defined markers

http://www.ofpec.com/editors/browse.php?browsewhat=2&category=2_10

Baphomet

  • Guest
Re:getmarkerpos: name or text?
« Reply #2 on: 26 Feb 2003, 05:07:57 »
Thanks, this might be a servicable workaround. I just wish BIS had the foresight to name user markers what their text is.   ::)

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:getmarkerpos: name or text?
« Reply #3 on: 26 Feb 2003, 07:20:22 »
huh?  :o

You CAN name markers in the editor.. and you can hide them, move them, change their color ect. with a script.
Not all is lost.

Baphomet

  • Guest
Re:getmarkerpos: name or text?
« Reply #4 on: 26 Feb 2003, 21:32:07 »
Yes. If I recall it's using the radio. While that might work for a predominantly artillery based scenario. That leaves a scant few radio commands at my disposal for other things. that and it's not as precise. Still it's servicable for some missions. I was just hoping what I was trying to do was possible... that is with user markers only.

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:getmarkerpos: name or text?
« Reply #5 on: 26 Feb 2003, 22:07:20 »
onMapSingleClick command
Operand types:
    command: String
Compatibility:
    Version 1.85 required.
Type of returned value:
    Nothing
Description:
    Define action performed when user clicks in map. Command receives:
   
    _pos array position
    _units array selected units
    _shift,_alt bool key state
   
    If click is processed, command should return true.

Example:
    onMapSingleClick {"SoldierWB" createUnit [_pos,group player];true}


Maybe you could use that somehow.
Not all is lost.

Baphomet

  • Guest
Re:getmarkerpos: name or text?
« Reply #6 on: 27 Feb 2003, 01:12:47 »
I was thinking of something like that, activated by a radio command like in Skumball's multi mapclick detection array... except without the multi mapclick detection. Unless I wanted to get fancy and modify the script to camcreate an object foreach mapclick.

I'll be sure to try it out. Thanks for the help.