Page MenuHomeFeedback Tracker

(vehicle player == "Steerable_Parachute_F") returns generic error
New, NormalPublic

Description

if (vehicle player == "Steerable_Parachute_F") exitWith {};

The above will return "Generic Error" rather than a bool.

Details

Severity
Minor
Resolution
Open
Reproducibility
Always
Operating System
Windows 7
Category
Scripting
Steps To Reproduce

Execute "if (vehicle player == "Steerable_Parachute_F") exitWith {};"

Event Timeline

Gnashes created this task.Apr 20 2017, 2:36 AM

Also worth noting that (vehicle player isEqualTo "Steerable_Parachute_F") returns false when in a steerable parachute.

As you should read in BIKI, vehicle player returns an object, not a string.
Next time, read the BIKI. For a remaining question, do not hesitate to ask on BI forum.

if (vehicle player iskindOf "Steerable_Parachute_F") exitWith {};

My reaction when I realized what I did......

https://cdn.meme.am/cache/instances/folder296/54781296.jpg

I'm going to go back to being a derp now, ignore me!