Command "soldier in vehicle" used to check when unit enters vehicle and ! as opposite (check when unit is out of vehicle) dosen't work anymore. Gives "Error !: Type Object, expected Bool" black box during playing.
Description
Description
Details
Details
- Severity
- Feature
- Resolution
- No Bug
- Reproducibility
- Always
- Operating System
- Windows 7
- Operating System Version
- x64
- Category
- Scripting
Steps To Reproduce
Edit: Trigger
Trigger: Expression
Condition
!soldier in car;
On Activation
hint "soldier is inside car";
Click Play -> black box which says "Error !: Type Object, expected Bool" and script won't work.
Additional Information
Worked before Update 1.66.
! used negative opposition also in other scripts ex. !alive hvt (activates when high value target is killed).
Event Timeline
Comment Actions
Hello,
I think the command you are trying to use is incorrect.
You are using:
!unit in car
Applying the ! on the unit which is Type not Bool
Correct should be:
!(unit in car)
Thus applying the operator on the command and getting negated return of that command, a Bool value