Page MenuHomeFeedback Tracker

Terrain objects is <NULL-object> in EpeContact* events handlers
Closed, ResolvedPublic

Details

Severity
Minor
Resolution
Won't Fix
Reproducibility
Always
Operating System
Windows 10 x64
Operating System Version
1709 build 16299.125
Category
Scripting
Steps To Reproduce
  1. Open editor
  2. Place vehicle with driver
  3. Fill vehicle driver init code:
(vehicle player) addEventHandler ["EpeContactStart", {
    systemChat format["EpeContactStart: %1", _this];
}];
(vehicle player) addEventHandler ["EpeContact", {
    systemChat format["EpeContact: %1", _this];
}];
(vehicle player) addEventHandler ["EpeContactEnd", {
    systemChat format["EpeContactEnd: %1", _this];
}];
  1. Start mission as vehicle driver
  2. Drive the vehicle to any TERRAIN object - walls, fences, lamps etc.
  3. See systemChat messages:
EpeContactStart: [R Alpha 1-1:1 (playerName),<NULL-object>,"","",0]
EpeContact: [R Alpha 1-1:1 (playerName),<NULL-object>,"","",668.879]
EpeContactEnd: [R Alpha 1-1:1 (playerName),<NULL-object>,"","",0]
Additional Information

There would be no questions, but some objects returned correctly:

EpeContactStart: [R Alpha 1-1:1 (playerName),26f7aec9600# 1121126: lampstreet_small_f.p3d,"","",0]
EpeContact: [R Alpha 1-1:1 (playerName),26f7aec9600# 1121126: lampstreet_small_f.p3d,"","",154.578]
EpeContactEnd: [R Alpha 1-1:1 (playerName),26f7aec9600# 1121126: lampstreet_small_f.p3d,"","",0]

Such a difference seems to me a bug.

Event Timeline

microbe created this task.Mar 1 2018, 12:18 PM
microbe edited Steps To Reproduce. (Show Details)
microbe edited Steps To Reproduce. (Show Details)Mar 1 2018, 12:21 PM
microbe edited Steps To Reproduce. (Show Details)
microbe edited Additional Information. (Show Details)
microbe changed Severity from None to Minor.Jun 13 2019, 5:24 AM
microbe changed Category from Engine to Scripting.
keel added a subscriber: keel.Feb 19 2023, 8:11 PM

"_object2" not null would be awesome.
Many features can come from this.

Indeed would be very handy. Unfortunately if I remember correctly KillzoneKid said tricky/"impossible" - might due to terrain streaming, some objects not having classes, etc.

BIS_fnc_KK closed this task as Resolved.Feb 20 2023, 1:20 PM
BIS_fnc_KK changed Resolution from Open to Won't Fix.