0 Members and 2 Guests are viewing this topic.
;Radar script; Detects unit within radar range and if enemy players are in vehicle it will track them and display their location on map.;start radar loop;A trigger in your map should act as radar area name this trigger usradar ;and set it to repeatable.;Under condition in trigger place the following player in thislist;under activation of radar trigger place the following [player] exec "usradar.sqs";establish contact name_contact = _this select 0;establish contact type vehicle or man_contacttype = vehicle _contact ;check contact type;if contact type not vehicle then exit. vehicle check should return player unit name rather than vehicle name if player not in vehicle;if it is a vehicle then track it? _contacttype = _contact : exit;loop to start radar tracking#radartrack;get position of contact_contactpos = getpos _contact;establish distance between radar base and contact_inrange = _contactpos distance usradar;display contact on mapwest reveal _contact;inform side that radar contact available on mapwest sidechat "US Radar is tracking vehicle contact";wait 0.5 seconds for radar beam~0.5;check range of contact if contact in range continue to track;if contact out of range inform side that contact was lost and end radar track? _inrange < 500 : goto "radartrack"west sidechat "US Radar has lost vehicle contact"Exit