OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started 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
-
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.
-
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
-
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)
-
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
-
and how to make the a wolle gruop probavility of presence???
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.
-
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.
-
But it dont have a randomizer.... need a random position for the teleport...so it is useless for me
Thanks anyway
-
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)
-
Thanks a lot THobson for your suppourt!
cheers
-
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
-
It will work with markers it is just that you can't use getPos, you have to use getMarkerPos instead.
-
Can't this be done with an extremely large placement radius?
-
I think what he is after is not a randon start location but a location to setPos them to that is random.