Team Spartan Cookies & Milk Forums
Entity Spawn function - Printable Version

+- Team Spartan Cookies & Milk Forums (https://teamscm.co.uk)
+-- Forum: Garry's Mod (https://teamscm.co.uk/forum-4.html)
+--- Forum: Starfall (https://teamscm.co.uk/forum-7.html)
+--- Thread: Entity Spawn function (/thread-1198.html)

Pages: 1 2


RE: Entity Spawn function - 4N0NYM - 06-08-2015

(06-08-2015, 01:52 PM)rouing Wrote:
(06-08-2015, 01:48 PM)xXxANOxXx Wrote:
(06-08-2015, 01:42 PM)rouing Wrote: Ano, the best way to make a 2 hull ships is to keep them unwelded from each other. Use a warp drive on both and have one offset offset the tolocal from the other shipdrive so that they warp togeather.
It is the Easyst way, not the best way.

Its the ONLY way. You cant have 2 cores on one contraption
it isnt the ONLY way and with a remove and spawn function is there no problem.


RE: Entity Spawn function - rouing - 06-08-2015

(06-08-2015, 01:53 PM)xXxANOxXx Wrote:
(06-08-2015, 01:52 PM)rouing Wrote:
(06-08-2015, 01:48 PM)xXxANOxXx Wrote:
(06-08-2015, 01:42 PM)rouing Wrote: Ano, the best way to make a 2 hull ships is to keep them unwelded from each other. Use a warp drive on both and have one offset offset the tolocal from the other shipdrive so that they warp togeather.
It is the Easyst way, not the best way.

Its the ONLY way. You cant have 2 cores on one contraption
it isnt the ONLY way and with a remove and spawn function is there no problem.
Just have a second ship core off somewhere hidden. Place it on ship and put it back as needed using weld function and setPos


RE: Entity Spawn function - 4N0NYM - 06-08-2015

that isnt a problem here a small thing so i think should work it :
Code:
function SpawnShipCore() ShipCore = Entity Spawn Function end function update() if INPUT then SpawnShipCore() ShipCore:setPos(ents.self() + Vector(0,0,0)) ShipCore:weldTo(ents.self()) else ShipCore:remove() end end timer.create("update",0.5,0, update)



RE: Entity Spawn function - rouing - 06-08-2015

(06-08-2015, 02:00 PM)xXxANOxXx Wrote: that isnt a problem here a small thing so i think should work it :
Code:
function SpawnShipCore() ShipCore = Entity Spawn Function end function update() if INPUT then SpawnShipCore() ShipCore:setPos(ents.self() + Vector(0,0,0)) ShipCore:weldTo(ents.self()) else ShipCore:remove() end end timer.create("update",0.5,0, update)

Set the ShipCore to an already spawned shipcore off in nowhereland or something


RE: Entity Spawn function - 4N0NYM - 06-08-2015

(06-08-2015, 02:02 PM)rouing Wrote:
(06-08-2015, 02:00 PM)xXxANOxXx Wrote: that isnt a problem here a small thing so i think should work it :
Code:
function SpawnShipCore() ShipCore = Entity Spawn Function end function update() if INPUT then SpawnShipCore() ShipCore:setPos(ents.self() + Vector(0,0,0)) ShipCore:weldTo(ents.self()) else ShipCore:remove() end end timer.create("update",0.5,0, update)

Set the ShipCore to an already spawned shipcore off in nowhereland or something

that is a simple exemplare how it should i just have just when i build the ship to trix and to add an unweld function (i hope there is an unweld function or i have to use ever the tool gun)


RE: Entity Spawn function - Person8880 - 06-08-2015

Sorry, but automated arbitrary entity spawning is not going to happen due to security, abuse and maintenance problems.