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 … 14 15 16 17 18 Next »
Proposed change to entities
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Linear Mode
Proposed change to entities
07-03-2015, 10:00 AM,
#2
Person8880 Offline
gpj.ecafllorT
*******
Posts: 2,407
Threads: 45
Joined: Sep 2013
RE: Proposed change to entities
Just to clarify what this means as the first post was probably not explicit enough:

Current system
--Valid entity
local Pos = Ent:pos() --Returns position
EntConfusedetPos( Pos + Vector( 0, 0, 10 ) ) --Moves the entity up 10 units

--Invalid entity
local Pos = Ent:pos() --Returns nil
EntConfusedetPos( Pos + Vector( 0, 0, 10 ) ) --Throws an error about performing arithmetic on a nil value

Proposed system
--Valid entity, same as above
local Pos = Ent:pos() --Returns position
EntConfusedetPos( Pos + Vector( 0, 0, 10 ) ) --Moves the entity up 10 units

--Invalid entity
local Pos = Ent:pos() --Throws error "Attempted to use an invalid Entity!"
Find
Reply
« Next Oldest | Next Newest »


Messages In This Thread
Proposed change to entities - by Person8880 - 06-03-2015, 08:25 PM
RE: Proposed change to entities - by Person8880 - 07-03-2015, 10:00 AM
RE: Proposed change to entities - by TheOneAndOnlyTee - 07-03-2015, 11:59 AM
RE: Proposed change to entities - by Person8880 - 07-03-2015, 03:03 PM
RE: Proposed change to entities - by LocInt - 07-03-2015, 03:30 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.