Home   Help Search Login Register  

Author Topic: Moving a marker to my possition?  (Read 1231 times)

0 Members and 1 Guest are viewing this topic.

Offline pexmo

  • Members
  • *
  • I'm a llama!
Moving a marker to my possition?
« on: 28 Feb 2007, 08:10:30 »
I wounder if anyone can help me with the following:

1: I want to add a action to a player that makes a marker move to the player possition when using it.

2: If possible can this action be put on a dead body upon death? lets say when a player dies another player gets this action availiable on the dead players corpse?

EDIT:

3: I was also wondering how i can make a markers posstion being changed by using a action and then clicking out the new marker possition on the map

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re: Moving a marker to my possition?
« Reply #1 on: 01 Mar 2007, 11:33:57 »
1.  Create the marker in the mission editor and make it type "empty" and name it marker1.    Use the addAction command to add the action to the player.    When the action is used,

marker1 setPos getPos player
marker1 setMarkerType "whatever marker type you want"

2. Learn about eventHandlers, particualarly "killed".    The action can then be added on death.

3. you need the onMapSingleClick command.   This is slightly tricky and I recommend you get 1. and 2. nailed down before tackling this.   Search the forums, much good advice has been given in the past.



Syntax etc not guaranteed at all, this is just a sketch.
Plenty of reviewed ArmA missions for you to play