Page MenuHomeFeedback Tracker

Dead units cannot be removed from helicopter
Assigned, WishlistPublic

Description

Neither

deadunit action ["eject", vehicle deadunit]

nor

moveout deadunit or deadunit action ["GetOut", vehicle deadunit]

works

Details

Legacy ID
2122826904
Severity
None
Resolution
Open
Reproducibility
Always
Category
Scripting
Steps To Reproduce

spawn heli and ai named bob

bob moveinany heli;
bob setdamage 1;
bob action ["eject", heli]

doesnt work

moveout bob

doesnt work

bob action ["GetOut", heli]

Event Timeline

Killzone_Kid edited Additional Information. (Show Details)
Killzone_Kid set Category to Scripting.
Killzone_Kid set Reproducibility to Always.
Killzone_Kid set Severity to None.
Killzone_Kid set Resolution to Open.
Killzone_Kid set Legacy ID to 2122826904.May 7 2016, 7:40 PM
Killzone_Kid edited a custom field.

A setPosATL (or setPosASL) with a postion outside the vehicle object should work for removing dead units from a vehicle.

Don't think dead units should be able to perform actions. But moveOut should work.

@caliban55 thanks for the tip, but as mulledk said, at least moveout should work.

there must be something that will make this work because having another unit enter will usually kick the unit out anyway.
Or is that a physx ragdoll effect that causes that to happen?
I see from a related-to fbt issue that it stops units entering also.