Home   Help Search Login Register  

Author Topic: deletevehicle _x - weird  (Read 661 times)

0 Members and 1 Guest are viewing this topic.

Offline Chris Death

  • Former Staff
  • ****
  • Finally Death's gonna get ya
    • OFPEC
deletevehicle _x - weird
« on: 14 Nov 2002, 17:54:04 »
I ran into a problem, using deletevehicle _x, to delete a whole
group.
I've had a group, named: hosta (two resistance soldiers)
Because i was using guard wayoints for the enemy troops, i did not want to confuse by having unnecessary tropps on
the battlefield.
So after the two resistance soldier's job was done, i used the
onActivation field of their last wayoint to delete them:
"deleteVehicle _x" forEach units hosta

Unfortunately at exactly this point of the mission, the game
crashed everytime.

So i had to investigate this problem, since the syntax of the
command i've been using was correct.

After having a look into a mission, where i also have been using this command (and it did not crash the game there),
i found a little difference.

I've executed the same command, but i've been using a trigger
in this mission.

After changing the delete procedure in my other mission from
waypoint to trigger, it worked there aswell  :D

Summary:

If you want to delete a whole group by using deletevehicle _x,
you MUST NOT use a wayoint of this group for that

!!!!! this causes your game to crash !!!!!

After thinking a little bit about it, i totally understand this problem now, because of deleting the group,
also the waypoint will be deleted, and so the whole procedure gets deleted, while executing it.

hope this is some useful information for you guys

~S~ CD
Dont argue with idiots....they will bring you down to their level and beat you there with experience.

How to use Waypoint type Scripted