OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: sissiluutnantti on 30 Jun 2003, 13:17:03
-
I have this one problem that I can't solve myself.
I have group of BMP:s and one is leader of course. Leader has a waypoint, like guard. Is it possible that when that group is destroyed it will "respawn" to start and the original waypoint is till active for that group, so it starts to navigate back to original waypoint.
It would be great thing to have those destroyed tanks to stay in field, but that's not possible I think?
Do I need a some kind of special script or is it possible to make somehow else.
I think I found a solution, but still if somebody have good idea. Write it here!
-
if it sguard WP - it wil b alwayz active ;) :P
da same 4 hold WP ;)
LCD OUT
-
No really. if someone has a good idea, please share it! That solution didn't work.
-
I have this one problem that I can't solve myself.
I have group of BMP:s and one is leader of course. Leader has a waypoint, like guard. Is it possible that when that group is destroyed it will "respawn" to start and the original waypoint is till active for that group, so it starts to navigate back to original waypoint.
It would be great thing to have those destroyed tanks to stay in field, but that's not possible I think?
Do I need a some kind of special script or is it possible to make somehow else.
I think I found a solution, but still if somebody have good idea. Write it here!
If the group has completed a waypoint, such as a move waypoint, then it's gone. LCD is right. Use a guard waypoint and it will always be active, including for created units.
-
I think what his prob is that after the whole group is destroyed, the wp dissapears because there is no1 left to carry it out
add this to the respawn to every member of the group:
BMP doMove getPos place
-
I had the same problem once. I just placed a cycle waypoint after the guard waypoint and never had a problem with the respawned units working properly. The new units always responded as they should.
-
I think what his prob is that after the whole group is destroyed, the wp dissapears because there is no1 left to carry it out
add this to the respawn to every member of the group:
BMP doMove getPos place
Yep, that's it. If the whole team is dead, the waypoint dissapears. How that BMP doMove getPos place works? How can I write that script to respawned unit? Thanx for advice!
-
Nope, the waypoint does NOT disappear if the whole group dies, as long as the group has a groupname. Check my createunit tutorial in the editors depot. I create units for dead groups all day long and they use guard waypoints no problem.
-
Yep, that's it. If the whole team is dead, the waypoint dissapears. How that BMP doMove getPos place works?
I'm so glad my replies get read and people follow advice.
-
On the subject of a group being destryed could someone reming me how to do for that.
I carn't remeber how I did it before.
-
Lets put it this way.
I have a group of BMP (or soldiers or airplanes...) and the groupname is f1.
When mission starts I have ordered them to go guard-waypoint and after that is cycle-waypoint, so waypoints stay alive even the group is destroyed.
Now the difficult point:
When the whole group is dead (f1-group) how can I respawn them to an area that I have planned before (I have made multiplayer mission where player is respawned to planned area, but I have never do it with AI-troops with singleplayer) and they automatically set of course to old Guard-cycle waypoint.
This is the problem
If someone has a good script that I can use, please share it.