OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Flauta on 10 Mar 2005, 22:56:57

Title: Group starting position randomizer needed
Post by: Flauta on 10 Mar 2005, 22:56:57
hi there:

first, mi english is bad, so any problem answerme,
I was looking for a script wich can met the followin:

*Wolle Group single "Porbavility of presence"
*Wolle Group starting position randomizer (setted with a "heliport (invisible)" or something (or maybe a way to teleport wolle group to an x position)
* Not-the-same Starting-Position for more than 1 group

Can be done? ani ideas?


Thanks anyway
Title: Re:Group starting position randomizer needed
Post by: THobson on 10 Mar 2005, 23:15:08
You don't need a script:

For the group leader set the probability of presence.  Call him something, say AlphaLeader.
For each of the other members in the group set their condition of presence as

alive AlphaLeader

For random locations:

place some empty markers and group them with the group leader and he will start at one of them (or the place you put him on the map) selected at random.  If you have all the other group memebers in Formation then they will all start in formation with him wherever he starts.

I hope this is clear.
Title: Re:Group starting position randomizer needed
Post by: Flauta on 10 Mar 2005, 23:21:03
Very nice!, this will be helpfull, but... what if a tigger mus be active till startpoint activates?

in the mission, fist the player's squad must  take a Russian city, then  some grups "appears" (far, so you cant see them appearing) and start attacking...
thats because i want a script...
any ideas?

i love this Forum :p
Title: Re:Group starting position randomizer needed
Post by: THobson on 10 Mar 2005, 23:23:25
You could setPos the units of the group to where you want them to be when a tigger fires.  

Have a look at this;
http://www.ofpec.com/yabbse/index.php?board=8;action=display;threadid=22430 (http://www.ofpec.com/yabbse/index.php?board=8;action=display;threadid=22430)
Title: Re:Group starting position randomizer needed
Post by: Flauta on 10 Mar 2005, 23:51:28
about the wolle gruop probavility of presence.. didnt work...
but all the other is ok!

Still needing the script...

random teleportation (set by markers or Heliports) when a tigger is hit

and how to make the a wolle gruop probavility of presence???

well, i'll do the same post on avanced scripting.....

byes
Title: Re:Group starting position randomizer needed
Post by: macguba on 11 Mar 2005, 00:23:29
Quote
and how to make the a wolle gruop probavility of presence???

Quote
For the group leader set the probability of presence.  Call him something, say AlphaLeader.
For each of the other members in the group set their condition of presence as

alive AlphaLeader

The whole group appears in the mission ONLY if the leader appears.    No leader = no group.
Title: Re:Group starting position randomizer needed
Post by: THobson on 11 Mar 2005, 08:40:47
Quote
well, i'll do the same post on avanced scripting.....
Peopel might object if you do.  You will only get the same peopel looking at your post wherever you put it, and only one thread per question is the rule.

Bye the way.  If you look at reply #4 on the link I gave you above you will find a script that should teleport a group keeping them in formation.
Title: Re:Group starting position randomizer needed
Post by: Flauta on 11 Mar 2005, 22:21:20
But it dont have a randomizer....  need a random position for the teleport...so it is useless for me

Thanks anyway
Title: Re:Group starting position randomizer needed
Post by: THobson on 12 Mar 2005, 00:15:34
Just look at reply #11 on the attached thread.  You really should keep your questions all in one place.

http://www.ofpec.com/yabbse/index.php?board=8;action=display;threadid=22430 (http://www.ofpec.com/yabbse/index.php?board=8;action=display;threadid=22430)
Title: Re:Group starting position randomizer needed
Post by: Flauta on 12 Mar 2005, 01:00:14
Thanks a lot THobson for your suppourt!

cheers
Title: Unsolved! help1
Post by: Flauta on 14 Mar 2005, 23:48:41
well I thougth that that was the script needed, but it was not!...  :'(:(, it dont wiork very well for my mission, there is maybe a way to do it whit markers, or heliports?


thanks anyway
Title: Re:Group starting position randomizer needed
Post by: THobson on 15 Mar 2005, 08:31:14
It will work with markers it is just that you can't use getPos, you have to use getMarkerPos instead.
Title: Re:Group starting position randomizer needed
Post by: Homefry31464 on 15 Mar 2005, 18:38:57
Can't this be done with an extremely large placement radius?
Title: Re:Group starting position randomizer needed
Post by: THobson on 15 Mar 2005, 19:14:50
I think what he is after is not a randon start location but a location to setPos them to that is random.