Home   Help Search Login Register  

Author Topic: Delete a unit  (Read 442 times)

0 Members and 1 Guest are viewing this topic.

Offline Killzone

  • Members
  • *
  • War is the true Enemy
Delete a unit
« on: 12 Sep 2003, 22:16:01 »
Hello,

I was wondering, I am using the createunit command:

"bas_ranger" createunit [getpos player,group(player)]

To create unit when I need one. I was wondering is there a  way I can have this unit deleted when I no longer need him (without just shooting him ;D) is there a deleteunit command and since he is created out of thin air he has no name (is there a way to name him)

Thanks in advance
"Everyone dies so deal with it and move on"

                                                      ME

Offline rhysduk

  • Former Staff
  • ****
Re:Delete a unit
« Reply #1 on: 12 Sep 2003, 22:41:18 »
Check out the ED Depot for the pending version of a delete unit script - tha might help you

Rhys
Reviewed Missions Board: Please Read the User's Guide before posting!

Pride and Joy 1 (HW100-T)

laulau

  • Guest
Re:Delete a unit
« Reply #2 on: 12 Sep 2003, 23:34:26 »
just do like this:
"bas_ranger" createunit [getpos player,group (player),"ranger1 = this",1,"Private"]

ranger1 is the name of your unit.
so when you need to delete it, use this command:

deleteVehicle ranger1

Cctoide

  • Guest
Re:Delete a unit
« Reply #3 on: 14 Sep 2003, 03:25:09 »
Just dump him in the sea  ;D