OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: DDT on 13 Jun 2004, 04:07:54

Title: Vehicle respawn
Post by: DDT on 13 Jun 2004, 04:07:54
I need a script that can make the AI respawn at a different point on the map and then join the fight no matter where i have moved to.  Basically once i kill an ememy tank or infantry he is respawned and then moves to where the action is taking place no matter where i am at.  I also need them to olny respawn a few times each.
Title: Re:Vehicle respawn
Post by: DDT on 15 Jun 2004, 04:52:04
Is there anything that is even close to what i am talking about?  Or can somebody modify a script for me?
Title: Re:Vehicle respawn
Post by: Neptune on 16 Jun 2004, 15:24:20
Once the unit is dead, you can check his last position quick with the GetPos command.

Set a waypoint to this position by script (maybe with a nice placement radius?)
Now, if the vehilce respawns it will head directly to this waypoint!
Title: Re:Vehicle respawn
Post by: netta1234 on 17 Jun 2004, 18:30:07
ive tryed that but i dont think it does work becouse ...

the Vehicle is respawned will the hostile AI ignore like it was dead



Title: Re:Vehicle respawn
Post by: Neptune on 25 Jun 2004, 13:42:25
I don't think that's true.
Ever played the basic BIS deathmatch map that plays in La Trinite, with AI?
Even when respawend, the AI still fires at eachother.