Team Spartan Cookies & Milk Forums
  • Issue Tracker
  • Donations
  • Search
  • Member List
  • Help

Register

Team Spartan Cookies & Milk Forums Garry's Mod Help and Support v
« Previous 1 … 14 15 16 17 18 … 21 Next »
Detecting ships
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Linear Mode
Detecting ships
29-06-2015, 06:47 PM, (This post was last modified: 29-06-2015, 06:48 PM by LocInt.)
#7
LocInt Offline
Long gone
****
Posts: 489
Threads: 91
Joined: Aug 2014
RE: Detecting ships
(29-06-2015, 06:40 PM)Nova Viper Dwagon Wrote:
(29-06-2015, 06:16 PM)james gratrix Wrote:
(29-06-2015, 05:50 PM)[HUN-BA]levente20000 Wrote: What are you using for detecting ship cores? I've tried target finder, it finds the target but if i wire the vector of the target to the weapons it just fires on the ground. Thanks in advance!
Ok best bet for targeting certain objects is using e2 or starfall, as i know allready not sure about starfall though ill check in a moment though, there are some chips out there where people have allready used targeting certain objects so if you want to have a look at there format as well as what im about to say it may help.

ill go over e2 as im guessing that will be the best to start at.
Ok so first of you will need to set up an array of different targets such as the ships core, so first in your e2 your going to want to start an array with ship_core as the entity then throughout your e2 you can pull it up with the entity value of whatever you set it to like Core=Ship["ship_core",entity] then is basicly Core:pos() which will give you your vector of where the ship core is.

That was a bit rushed sorry. shout out when your online then ill show you.

Starfall is all well and good but its advance and you need to maintain it, E2 in all my years of TSCM i have never had to maintain any of it XD

Why complicate targeting some ones core, Unless your useing a screen that is... then you want to use starfall for its detail

Well its actually much easier to find stuff in Starfall than E2.

Code:
Cores = find.byClass( "ship_core", function( Ent ) return Ent:owner() == ents.owner() end )

тѕсм.Person8880 hovers the nerf bat over Tetryon damage
Website Find
Reply
« Next Oldest | Next Newest »


Messages In This Thread
Detecting ships - by [HUN-BA]levente20000 - 29-06-2015, 05:50 PM
RE: Detecting ships - by Nova Viper Dwagon - 29-06-2015, 06:04 PM
RE: Detecting ships - by [HUN-BA]levente20000 - 29-06-2015, 06:08 PM
RE: Detecting ships - by Grizzle Bizzle - 29-06-2015, 06:16 PM
RE: Detecting ships - by Nova Viper Dwagon - 29-06-2015, 06:40 PM
RE: Detecting ships - by LocInt - 29-06-2015, 06:47 PM
RE: Detecting ships - by Nova Viper Dwagon - 29-06-2015, 07:47 PM
RE: Detecting ships - by [HUN-BA]levente20000 - 29-06-2015, 06:37 PM

  • View a Printable Version
Forum Jump:


Users browsing this thread:
Contact UsTeam Spartan Cookies & MilkReturn to TopLite (Archive) ModeMark all forums readRSS Syndication

Powered By MyBB, © 2002-2026 MyBB Group.