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 … 13 14 15 16 17 18 Next »
Starfall Help
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Linear Mode
Starfall Help
27-05-2015, 02:12 PM,
#28
Alanzote Offline
TSCM Member
***
Posts: 123
Threads: 40
Joined: Oct 2013
RE: Starfall Help
(26-05-2015, 05:52 PM)Person8880 Wrote: Basically, you need to make use of something I added yesterday for this purpose:
local Corridors = ents.self():getConstraints( function( Ent )
return Ent:class() == "prop_physics" and Ent:model():find( "models/whatever/path/you/want" )
end )
Do that once at the start of the code and then use the Corridors table for when you change the sub-materials later. I'd hope you don't have a massive amount of corridor props compared to exterior props so it should be fine ops-wise later, and the filter should make sure you don't exceed when starting up.

If you for some reason have way too much going on in the code on first run you might still hit issues, in that case, just delay it like so:
local Corridors
timer.simple( 1, function()
Corridors = ents.self():getConstraints( function( Ent )
return Ent:class() == "prop_physics" and Ent:model():find( "models/whatever/path/you/want" )
end )
end )
and I'd hope that'll work fine.
it can only use 3 models(check with if and elseif)

[Image: stargate_kawoosh_animation_HD_by_SergeyDruid.gif] [Image: kecepatan-cahaya-light-speed-warp-drive2....gif?w=640]
Find
Reply
« Next Oldest | Next Newest »


Messages In This Thread
Starfall Help - by Alanzote - 24-05-2015, 07:36 PM
RE: Starfall Help - by Person8880 - 24-05-2015, 08:00 PM
RE: Starfall Help - by Blackhawk - 24-05-2015, 08:01 PM
RE: Starfall Help - by Alanzote - 24-05-2015, 08:05 PM
RE: Starfall Help - by Person8880 - 24-05-2015, 08:12 PM
RE: Starfall Help - by Alanzote - 24-05-2015, 08:13 PM
RE: Starfall Help - by Person8880 - 24-05-2015, 08:20 PM
RE: Starfall Help - by Alanzote - 24-05-2015, 08:22 PM
RE: Starfall Help - by Person8880 - 24-05-2015, 08:25 PM
RE: Starfall Help - by Person8880 - 24-05-2015, 08:33 PM
RE: Starfall Help - by Alanzote - 24-05-2015, 08:34 PM
RE: Starfall Help - by Person8880 - 24-05-2015, 08:36 PM
RE: Starfall Help - by Alanzote - 24-05-2015, 08:39 PM
RE: Starfall Help - by Person8880 - 24-05-2015, 09:34 PM
RE: Starfall Help - by Alanzote - 24-05-2015, 09:48 PM
RE: Starfall Help - by Person8880 - 24-05-2015, 09:51 PM
RE: Starfall Help - by Alanzote - 25-05-2015, 10:07 PM
RE: Starfall Help - by SuperPlayer - 25-05-2015, 10:39 PM
RE: Starfall Help - by Alanzote - 25-05-2015, 10:59 PM
RE: Starfall Help - by SuperPlayer - 25-05-2015, 11:13 PM
RE: Starfall Help - by Alanzote - 26-05-2015, 02:47 PM
RE: Starfall Help - by SuperPlayer - 26-05-2015, 03:57 PM
RE: Starfall Help - by Person8880 - 26-05-2015, 05:52 PM
RE: Starfall Help - by Alanzote - 26-05-2015, 09:51 PM
RE: Starfall Help - by Alanzote - 27-05-2015, 02:12 PM
RE: Starfall Help - by TheOneAndOnlyTee - 27-05-2015, 02:11 AM
RE: Starfall Help - by Red The Blue Color - 27-05-2015, 08:33 AM
RE: Starfall Help - by TheOneAndOnlyTee - 27-05-2015, 08:47 AM
RE: Starfall Help - by Person8880 - 27-05-2015, 05:40 PM
RE: Starfall Help - by Alanzote - 27-05-2015, 09:36 PM
RE: Starfall Help - by Alanzote - 28-05-2015, 02:37 PM
RE: Starfall Help - by Blackhawk - 28-05-2015, 04:10 PM
RE: Starfall Help - by Alanzote - 03-06-2015, 12:16 AM
RE: Starfall Help - by Alanzote - 30-05-2015, 11:13 PM
RE: Starfall Help - by Red The Blue Color - 31-05-2015, 01:42 AM
RE: Starfall Help - by Alanzote - 31-05-2015, 09:30 PM
RE: Starfall Help - by SuperPlayer - 31-05-2015, 09:37 PM
RE: Starfall Help - by Destiny's Player - 03-06-2015, 12:25 AM
RE: Starfall Help - by Person8880 - 03-06-2015, 05:57 PM
RE: Starfall Help - by shinji144 - 16-06-2015, 04:21 PM
RE: Starfall Help - by SuperPlayer - 16-06-2015, 04:54 PM
RE: Starfall Help - by shinji144 - 16-06-2015, 05:28 PM
RE: Starfall Help - by Person8880 - 16-06-2015, 05:53 PM
RE: Starfall Help - by shinji144 - 16-06-2015, 06:01 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.