Quantcast
Channel: Programming (In-game)
Viewing all articles
Browse latest Browse all 645

"IMyEntity is prohibited" fix?

$
0
0
Is there a workaround to this? Still new to the programming thing but when I tried to compile the script for the 3d Graphical Radar I got that. Here's the line that was giving me errors.


IMySensorBlock sensor = sensors as IMySensorBlock;
var entity = sensor.LastDetectedEntity;

It seems that the new update changed the way sensors work.

Viewing all articles
Browse latest Browse all 645

Trending Articles