Help with setsize

Post your scripting questions / solutions here

Moderator: Moderators

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

Help with setsize

Post by EzO_UK »

Is it possible to setsize a crate rather than scale it & if so what would the script look like plz ..... thx
User avatar
ViPER
General
Posts: 1058
Joined: Fri Jan 14, 2005 5:48 pm
Location: California
Contact:

Post by ViPER »

models like crates can only be scaled uniformly with "scale"
User avatar
Gold
First Lieutenant
Posts: 176
Joined: Sun Sep 28, 2003 8:10 pm

sure its possible to scale it and setsize the collision

Post by Gold »

Sure it will work.I did this quickly so have not adjusted the setsize correctly so when ya walk around the box it looks normal.But heres the working script.Play with the setsize numbers untill the collision looks right:)

local.static = spawn script_model
local.static model "static/indycrate.tik"
local.static.origin = ( -506 487 432 )
local.static.angles = ( 0 0 0 )
local.static.scale = 3.0
local.static setsize "-160 -160 0" "160 160 180"
local.static solid

p.s.
recently posted a king tiger also,but from the 0 replies from the post i assumed everyone already knew this was possible lol.
mohaa freak
User avatar
Gold
First Lieutenant
Posts: 176
Joined: Sun Sep 28, 2003 8:10 pm

Post by Gold »

local.static = spawn script_model
local.static model "static/indycrate.tik"
local.static.origin = ( -450 487 432 )
local.static.angles = ( 0 0 0 )
local.static.scale = 3.0
local.static setsize "-90 -124 0" "90 124 170"
local.static solid

Here ya go played with the numbers more.Now the setsize is even more accurate for the 3.0 scaled indycrate
Gold>>mohaafreak!!
Post Reply