Home   Help Search Login Register  

Author Topic: removing Dead bodies?  (Read 1476 times)

0 Members and 1 Guest are viewing this topic.

shadowknight

  • Guest
removing Dead bodies?
« on: 23 Mar 2003, 09:07:15 »
could someone please tell me how to remove dead bodies from a map? ive looked in the tutorial but it doesnt seem to work. i have also tried the suggested string fixes for the tutorial but still wont work.


Knut Erik

  • Guest
Re:removing Dead bodies?
« Reply #1 on: 24 Mar 2003, 09:18:47 »
Create a script

Quote
_dead = _this select 0

@!alive _dead
~10
_dead setpos getpos sea

Then put this in every units init field
[this] exec "NameOfScript.sqs"

Then create a Gl in the middle of nowhere and name it sea. Then the units will be teleported to the Gl named sea 10 sec after they are dead...

Cool eh  8)


GingaWRATH

  • Guest
Re:removing Dead bodies?
« Reply #2 on: 24 May 2003, 09:37:03 »
I did that moving of bodies  script and it worked, but i found that once you have died you no longer r able to be removed again. e.g I kill my self and my body is moved (Nice) but when i kill my self again my body just stayes there. I know what ya thinking i need to set my trigger to repeatedly and i did. What im thinking is maybe there is a way of respawning with the same name and that this may cure the problem.
If there is How? pls tell me im just dieing to know ;D

GingaWRATH

  • Guest
Re:removing Dead bodies?
« Reply #3 on: 24 May 2003, 18:57:53 »
K ive found a great 1 that works

GingaWRATH

  • Guest
Re:removing Dead bodies?
« Reply #4 on: 24 May 2003, 19:23:24 »
here is a great script that you should have no problems with.  I should thank Dominator for this one because he told it me.

right first you need to make 2 sqs files, ( you can do this by opening Notepad).

The first sqs file is called: West.sqs

put this inside the sqs file.

_body = _this select 0

?(_body == FlagOwner Westflagname):Goto "Flag"

?(_body != FlagOwner westflagname):Goto "Delete"

#Flag
~120
DeleteVehicle _body

#Delete
~30
deleteVehicle _body

exit  

then the second sqs file is called: East.sqs

Enter this in the sqs file:

_body = _this select 0

?(_body == FlagOwner Eastflagname):Goto "Flag"

?(_body != FlagOwner EastFlagname):Goto "Delete"

#Flag
~120
DeleteVehicle _body

#Delete
~30
deleteVehicle _body

exit  

You must remember that where it says East or westflagname you enter the name of the flag.

once youve done that place the sqs files in your mission folder found in users\your name\Mp missions\name of mission folder. Next you need to name each of your units . I use this :

WestS for the first Unit and WestS7 for the 8th Unit. and the same with EastS - EastS7 .  

Now you need to make a trigger for Each Unit.

Axis A = 0
Axis B = 0
Activation = None
Present
Repeatedly
Text= Hide Dead WestS
on Condition= !Alive WestS
on Activation= [WestS] Exec "West.sqs"

if you have 8 west and 8 east players then you need to make 16 triggers remembering to change the "WestS to what ever the name of the Unit is"

Place these triggers anywhere on your map (best somewhere far away)
If this don't help then no 1 can.