use removed item in sp conversion

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
User avatar
ViPER
General
Posts: 1058
Joined: Fri Jan 14, 2005 5:48 pm
Location: California
Contact:

use removed item in sp conversion

Post by ViPER »

i cant remember where i read this, but heard you could use a removed item somewhere else in the map. Does anyone know how/if this can be done?


$gatenorth remove


How to script gatenorth in a new location???
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post by Rookie One.pl »

You can't use anything that's been removed.

Code: Select all

$gatenorth.origin = ( 0 0 0 ) // your new gate coords
$gatenorth.angles = ( 0 0 0 ) // your new gate angles
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

just to clarify, Rookie means you should move it (and physics off and hide it would be good) to somewhere under your map or very high up, then just change the origin back to where you want it.
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post by Rookie One.pl »

lizardkid wrote:just to clarify, Rookie means you should move it (and physics off and hide it would be good) to somewhere under your map or very high up, then just change the origin back to where you want it.
That's quite pointless, don't you think? :? You can move it to where you want it to be immediately...
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

uhm, not sure what the meaning of that was...

what i meant to do was say "What rookie means is if you change the origin of the thing to somewhere else then move it to where you want it when you're ready you should have the same effect"
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post by Rookie One.pl »

Yeah, I know, but I can't see the point of moving it temporarily to one place and then move it to the destination. :? Why not move it to the destination at the beginning? :?
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

oh, i thought that's what you meant. take it out and use it later by moving it far far away. :oops:
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
User avatar
ViPER
General
Posts: 1058
Joined: Fri Jan 14, 2005 5:48 pm
Location: California
Contact:

Post by ViPER »

I can only use it once? thats what it looks like.
lizardkid
Windows Zealot
Posts: 3672
Joined: Fri Mar 19, 2004 7:16 pm
Location: Helena MT

Post by lizardkid »

well if you move it's origin you can use it twice by moving it's origin again to where you want it the second time. But why not just make two? unless you're going for low brush/entity count...
Moderator

۞
Abyssus pro sapientia
Olympus pro Ignarus
۞

AND STUFF™ © 2006
Rookie One.pl
Site Admin
Posts: 2752
Joined: Fri Jan 31, 2003 7:49 pm
Location: Nowa Wies Tworoska, Poland
Contact:

Post by Rookie One.pl »

How to copy a script_object (lets assume local.ent is the thing you want to copy):

Code: Select all

local.newent = spawn script_object
local.newent model local.ent.brushmodel
And now you can place local.newent wherever you want.
Admin
Image
Image
Honour guide me.

here's my stuff - inequation.org | here's where I work - thefarm51.com
Cobra {sfx}
Site Admin
Posts: 194
Joined: Tue Mar 23, 2004 10:25 pm
Contact:

Post by Cobra {sfx} »

Yes, you can use it as many times as you want until it is removed, so if you intend to re-use it hide it and give it new origins and angles and show it when needed
Post Reply