Thread for spawning explosive crates in stock maps.

Post your scripting questions / solutions here

Moderator: Moderators

nuggets
General
Posts: 1006
Joined: Fri Feb 28, 2003 2:57 am
Location: U-england-K (england in the UK) :P
Contact:

Post by nuggets »

oh yeah :P of course i see that now

good work Tom
hope this helps, prob not cos it's all foreign 2 me :-/
jordanw23
Private
Posts: 8
Joined: Thu Feb 12, 2004 11:10 pm

Post by jordanw23 »

could someone just post the script for plain old boxes for me? :lol:
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

Try this

Post by tltrude »

The indycrate is the only crate model there is, but here is a non exploding version of the script.


level waittill prespawn

thread crate_spawner ( 0 0 0 ) (0 90 0) // origin and angles
thread crate_spawner ( -500 2388 23 ) (90 0 0) // origin and angles

==============================================
==============================================

//--------------------------------------------------->
// CRATE SPAWN THREAD (place at bottom of page)
//--------------------------------------------------->

crate_spawner local.origin local.angles:

local.crate = spawn script_model
local.crate model "models/static/indycrate.tik"
local.crate.origin = local.origin + ( 0 0 -80 )
local.crate.angles = local.angles

end
Last edited by tltrude on Fri Feb 13, 2004 4:14 am, edited 1 time in total.
Tom Trude,

Image
omniscient
Major General
Posts: 694
Joined: Tue Sep 16, 2003 12:02 am

Post by omniscient »

haha, jesus boxes that appear form the ground. i like it.
Image
Elgan
Lieutenant General
Posts: 890
Joined: Tue Apr 13, 2004 10:43 pm
Location: uk
Contact:

Post by Elgan »

what about safesolid?
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

???

Post by tltrude »

I don't know what you are asking Elgan. What is "safesolid"? You do know this thread is almost a year old, right?
Tom Trude,

Image
Elgan
Lieutenant General
Posts: 890
Joined: Tue Apr 13, 2004 10:43 pm
Location: uk
Contact:

Post by Elgan »

yeah i know. i remember:D


safesolid is a command that makes a entity solid but first it checks to see if it can make it solid safe like.

never tried it but instead of out the floor cudnt u use safesolid instead?
User avatar
tltrude
Chuck Norris
Posts: 4774
Joined: Sun Jul 07, 2002 4:03 am
Location: Oklahoma, USA
Contact:

safe

Post by tltrude »

safesolid - make solid but first make sure no one is in my bounds that is thinking.

Seems like it would work, but I'm not interested enough to test it.
Tom Trude,

Image
Post Reply