HELP PLZ !!!!

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
EzO_UK
Private
Posts: 5
Joined: Wed May 30, 2007 12:19 pm

HELP PLZ !!!!

Post by EzO_UK »

Can someone tell me if this is possible plz

spawn script_object "targetname" "myspawnedclip"
$myspawnedclip.origin = ( 577 -1727 240.13 )
$myspawnedclip setsize ( -245 -295 -0 ) ( 400 325 800 )
$myspawnedclip solid
$myspawnedclip nodamage

Im not too bothered about the no damage or the solid bit but i want to it to be visible ... & I dont know what line to add next

By visible I mean any colour will do but the darker the better :)
User avatar
wacko
Field Marshal
Posts: 2085
Joined: Fri Jul 05, 2002 8:42 pm
Location: Germany

Post by wacko »

Afaik, you can just spawn models, no brushes.
Read this thread about spawning crates which might help
EzO_UK
Private
Posts: 5
Joined: Wed May 30, 2007 12:19 pm

Post by EzO_UK »

Thanks mate but thats not really what I'm after I just want a plain coluor
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

beam

Post by tltrude »

Well, you can spawn a "func_beam", but I don't know about the color.
Tom Trude,

Image
EzO_UK
Private
Posts: 5
Joined: Wed May 30, 2007 12:19 pm

Post by EzO_UK »

Can you explain ..I'm new to scripting ... thanks
User avatar
ViPER
General
Posts: 1058
Joined: Fri Jan 14, 2005 5:48 pm
Location: California
Contact:

Post by ViPER »

you can spawn a clip as a script_object

Code: Select all

	local.clipdoorc = spawn script_object                   //secret door side
	local.clipdoorc.origin = ( -415 -1834 20 ) // corrdinates 
	local.clipdoorc setsize ( -15 -1 -15 ) ( 15 1 15 ) // (xyz)(xyz) from origin point
	local.clipdoorc solid
	local.clipdoorc targetname closetdoor
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

laser

Post by tltrude »

Found this over at the TMT forum. The guy was having "angles" problems with it, so I don't know if it works.

Code: Select all

laser1:
 local.ent = spawn func_beam origin ( 2291 1654 -1663.88 ) endpoint ( 2291 1314.44 -1375 ) targetname laser
 local.ent color ( 0 0 1 ) // the numbers are for red, green, & blue
 local.ent scale 60
 local.ent setsize ( -20 -900 -1 ) ( 20 0 1 )
 local.ent numsegments 1
 local.ent.status = on
 local.ent doactivate 
end
It should draw a beam of blue between the origin and endpoint coordinates.
Tom Trude,

Image
User avatar
bdbodger
Moderator
Posts: 2596
Joined: Tue Feb 25, 2003 7:34 am
Location: canada
Contact:

Post by bdbodger »

You could use my showbox script . If you make the box it creates with beams 1 unit bigger than your clip it will show you where it is . You can get it at my site just click on my sig . You can't use a beam no matter what the scale appear exactly where you want because it always faces the player . It is actually flat if you can view it from the top you would see that . It will always rotate to face you and from other players perspective it will be facing them . The scale determines how wide the beam is and the start and endpoints determine how long it is but it is flat and has no thickness as you walk around it it rotates to always face you .

Image
Image
Post Reply