Page MenuHomeFeedback Tracker

Setcaptive true not working for spawned units
New, WishlistPublic

Description

When you setcaptive true a unit you spawned with createvehicle the enemy will still shoot them and checking their captive status will produce false.

Details

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

make a script with something like
_replacement = createvehicle [_class,_pos,[],0,"NONE"]
_replacement setcaptive true
?!(captive _replacement) : hint "not captive"

hint will be "not captive" and enemy will shoot them.

Event Timeline

HaydenG edited Steps To Reproduce. (Show Details)Nov 3 2013, 4:04 PM
HaydenG edited Additional Information. (Show Details)
HaydenG set Category to Scripting.
HaydenG set Reproducibility to Always.
HaydenG set Severity to None.
HaydenG set Resolution to Open.
HaydenG set Legacy ID to 4280390890.May 7 2016, 5:19 PM
Ghost added a comment.Jul 11 2014, 5:38 AM

This still seems to be an issue. I spawn and immediately setcaptive a unit yet they are still being killed.

Ghost added a comment.Jul 14 2014, 9:28 PM

please fix this. I even tried to spawn a blufor unit under civilian group with same results.