OFPEC Forum
Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Tycus on 25 Apr 2003, 09:35:32
-
hey there, don't yell if this has already been asked bt does anyone know how to delete guys that aren't neded anymore on maps, and if they can be respawned? and how
-
Hey
deleteVehicle tank
O Neil ;)
-
yes they can be Respawned AND Deleted
ok to delete do like Oneil said
use the command Deletevehicle "Name" where Name is the name of the object to be deleted
to respawn you need a Description.ext file in the mission
in the Description.ext put
Respawn = "BASE";
RespawnDelay = 0;
change BASE to the one you desire (Group: Respawn into another person in the group, Base: Respawn at Marker, Side: havnt used it before etc...)
respawndelay is how long to wait untill the person respawns obviously :)
if you use BASE you must add Markers in the mission to show where they will respawn
if i remember right its
West:
Respawn_West
East:
Respawn_East
Resistance:
Respawn_Guerilla
Civilian:
Respawn_Civilian
-
By the way Welcome to Operation Flashpoint Editing Center
-
is there a way to delete dead bodies to reduce lag?
-
I was told this script could work... haven't gotten around to check yet
[groupname] exec "deletecheck.sqs"
_group = _this select 0
_units = units _group
#loop
?(("Alive _x" count _units) == 0): goto "remove"
~random(5) + 5
goto "loop"
#remove
~40
"deletevehicle _x" foreach _units
exitWelcome to the Forums
IW
-
Hey
So does that delete units when they dye? just wanna know, I got deleteunit unitname
or something like that, it's in my list somewhere, but that deletes a unit when they enter a trig or something, just wanting to know if the script deltets them when they die
O neil
PS: Long words for 1 Q aye? ;) ;) ;)
-
My understanding of this script which I have not tried yet was if you have the group name exec the script that when your peeps start dying that they will also delete from mission.
I could be wrong... Try it out ;)