Page MenuHomeFeedback Tracker

"!unit in vehicle" don't work anymore
Closed, ResolvedPublic

Description

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.

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

razazel claimed this task.Dec 8 2016, 3:06 PM
razazel closed this task as Resolved.
razazel added a subscriber: razazel.

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

razazel changed Resolution from Open to No Bug.Dec 8 2016, 3:06 PM