Advertisement

Author Topic: spawning vehicles on empty markers  (Read 289 times)

0 Members and 1 Guest are viewing this topic.

Offline Trash Can Man

  • Members
  • *
  • We are no longer the knights who say "Ni!"
spawning vehicles on empty markers
« on: 09 Jul 2011, 01:27:35 »
Can someone plz explain to me how to spawn a boat on an empty marker???  ??? I have tried using
different things with no luck... thanks!

TCM

Walter_E_Kurtz

  • Guest
Re: spawning vehicles on empty markers
« Reply #1 on: 09 Jul 2011, 16:04:30 »
It would be more instructive if you gave an example of a method you had tried and failed to get working.

The syntax of getMarkerPos requires the name of the marker to be in speech marks.

Searching this sub-forum for createVehicle/createUnit and getMarkerPos might also be helpful.

Offline Trash Can Man

  • Members
  • *
  • We are no longer the knights who say "Ni!"
Re: spawning vehicles on empty markers
« Reply #2 on: 09 Jul 2011, 16:09:47 »
I am making a mission where three objectives have to be met. I have an empty marker and named it mark1
I have an empty boat named, boat1. My objective is that when the conditions are met in my trigger, the boat will spawn on the empty marker... I have tried getmarkerpos and it didn't work...  ???

Offline Aldo15

  • OFP-addict
  • Former Staff
  • ****
    • My OFP missions
Re: spawning vehicles on empty markers
« Reply #3 on: 09 Jul 2011, 16:35:18 »
Why not?

did you write this: ------->  boat1 setpos getmarkerpos "mark1"
I think it should work, if it doesn't work, Just ask me  :D

Cheers,
Aldo15
« Last Edit: 09 Jul 2011, 16:44:30 by Aldo15 »
My OFP stuff
FMF Project by Aldo15. Coming soon.
If in the high school or university, Teachers add a new subject about how to make scripts, missions, for ofp. I'd be number one of my classroom

Offline Inlesco

  • Members
  • *
Re: spawning vehicles on empty markers
« Reply #4 on: 10 Jul 2011, 09:18:20 »
Write down/paste this line into trigger's 'On Activation' field and it should be working: boat1 setpos (getMarkerPos "mark1"). Actually, Aldo's example was correct, but he forgot to add '()'.

Are you planing to release your mission to public later, Trash Can Man?

Offline Trash Can Man

  • Members
  • *
  • We are no longer the knights who say "Ni!"
Re: spawning vehicles on empty markers
« Reply #5 on: 10 Jul 2011, 12:57:27 »
that's what I forgot too!!  :blink: the bloody ()! thnx guys!
locked
TCM