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

Register

Team Spartan Cookies & Milk Forums Garry's Mod Starfall v
« Previous 1 2 3 4 5 … 18 Next »
What's the best way to detect if a ship is parented to the chip?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Linear Mode
What's the best way to detect if a ship is parented to the chip?
26-01-2021, 10:46 PM,
#1
57e11a Offline
Cheating Donating Member
***
Posts: 198
Threads: 68
Joined: Apr 2019
What's the best way to detect if a ship is parented to the chip?
So I'm trying to check if the ship is parented to the chip, my previous way was
#constraint.getAllConstrainedEntities(ents.self()) == #ents.self():getChildren()
But this doesn't work when there are subchildren, entities parented to entities parented to the chip, like a SBEP door parented to it's controller.
Does anyone have a better idea that I could use?

she/her
Founder of The Anisu Corporation
[Image: iZUefQi.gif]
Find
Reply
« Next Oldest | Next Newest »


Messages In This Thread
What's the best way to detect if a ship is parented to the chip? - by 57e11a - 26-01-2021, 10:46 PM

  • View a Printable Version
Forum Jump:


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

Powered By MyBB, © 2002-2026 MyBB Group.