Welcome, Guest Thursday 24th April 2014, 17:17:18
   Home   Help Search Login Register  

OFPEC Forum

Author Topic: spawning vehicles on empty markers  (Read 259 times)
0 Members and 1 Guest are viewing this topic.
Trash Can Man
*
Offline Offline

We are no longer the knights who say "Ni!"


« on: 09 Jul 2011, 00:27:35 »

Can someone plz explain to me how to spawn a boat on an empty marker???  Huh? I have tried using
different things with no luck... thanks!

TCM
Logged
Walter_E_Kurtz
Guest
« Reply #1 on: 09 Jul 2011, 15: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.
Logged
Trash Can Man
*
Offline Offline

We are no longer the knights who say "Ni!"


« Reply #2 on: 09 Jul 2011, 15: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...  Huh?
Logged
Aldo15
OFP-addict
Missions Depot Staff
*****
Offline Offline



WWW
« Reply #3 on: 09 Jul 2011, 15: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  Cheesy

Cheers,
Aldo15
« Last Edit: 09 Jul 2011, 15:44:30 by Aldo15 » Logged

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
Inlesco
*
Offline Offline


« Reply #4 on: 10 Jul 2011, 08: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?
Logged
Trash Can Man
*
Offline Offline

We are no longer the knights who say "Ni!"


« Reply #5 on: 10 Jul 2011, 11:57:27 »

that's what I forgot too!!  Blink the bloody ()! thnx guys!
locked
TCM
Logged
Pages: [1]   Go Up
  Send this topicPrint  
 
Jump to: