Home   Help Search Login Register  

Author Topic: help required  (Read 560 times)

0 Members and 1 Guest are viewing this topic.

Offline libriut99

  • Members
  • *
  • 2b or not 2b, who cares ???
help required
« on: 10 Mar 2003, 13:12:52 »
in a mission I'm using the following lines :

#loop
~2
_wounded =  "sebnamarmywon" camcreate getmarkerpos "perimeter"
removeallweapons _wounded
_wounded setdammage 0.9
_wounded moveincargo heli
_counter = _counter + 1
~5
? _counter < 4 : goto "loop"

now , I need to delete the camcreated soldiers . how can I do it ?
before 'Zee germans get there ...

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:help required
« Reply #1 on: 10 Mar 2003, 15:37:04 »
try deletevehicle _wounded
Not all is lost.

Offline libriut99

  • Members
  • *
  • 2b or not 2b, who cares ???
Re:help required
« Reply #2 on: 11 Mar 2003, 00:30:39 »
tried it , didn't work ....
I think 'couse _wounded is an array and the deletevehicle can't be used on an array.
before 'Zee germans get there ...

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
Re:help required
« Reply #3 on: 11 Mar 2003, 06:57:47 »
The lines below are taken from a simple camera script:

_cam = "camera" camcreate [0,0,0]
.....
....
.....
camdestroy _cam

Do you get what i mean?

btw - why don't you use the createVehicle?
Then the deletevehicle command would work.

:edit - P.S i'm not sure if the camdestroy think works, but
it's the only thing that sounds logical to me here because
you camcreated something so you need to camdestroy it
if you don't like it anymore  :'(
What i want to say is: i haven't tried it by myself yet  ;)

~S~ CD
« Last Edit: 11 Mar 2003, 07:00:49 by Chris Death »
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted

Offline libriut99

  • Members
  • *
  • 2b or not 2b, who cares ???
Re:help required
« Reply #4 on: 11 Mar 2003, 08:13:26 »
I've tried the camdestroy also , with no luck ,
but I'll try the createvehicle command ...thanks
before 'Zee germans get there ...

Offline libriut99

  • Members
  • *
  • 2b or not 2b, who cares ???
Re:help required
« Reply #5 on: 11 Mar 2003, 19:24:19 »
for whomever is interested ...
you cannot delete a unit while it is inside a vehicle .
first you have to eject it and only then delete it ....
thanks for all those who gave their ideas .
before 'Zee germans get there ...