Well I have tried to make a basic target info panel with a bunch of screens on it showing distance to target, HP of target and altitude. I also have another screen which I am trying to get an E2 I have made:
Code:
@name Target Display
@inputs T:entity BeaconZ BeaconDistance Link:wirelink
@outputs Altitude Health Distance Name:string
interval(100)
Altitude = round(BeaconZ) + 54
Health = T:health()
Distance = round(BeaconDistance)
Name = T:name()
if (!T)
{
Altitude = 0 &
Link:writeCell(2041, 1)
Link:writeString("No Target",0,0,123,411)
}
if(~T)
{
Link:writeString("Name: " + Name,0,0,123,411)
}
And im really stumped as to why it wont work. Though to be honest im not that great at E2 since I have only just started using it, I have looked through E2 guide [WIP] & the E2 documentation and i havent found anything that I can relate my chip to. I have also searched wiremod forums for 'Strings to console screen' and couldnt see anything obvious.
By the way the wire devices i am using are:- E2 Chip (Above) with wirelink
- Console Screen
- Target Finder + Beacon sensor
- 3 Normal screens to show target info (Altitude, HP & Distance)
Any help to make this work / shorten code would be greatly appreciated.
Thanks in advance
Andy
P.S could anyone tell me the Entity:x (function?) that shows target speed / velocity??
Bookmarks