Results 1 to 3 of 3

Thread: local.static = spawn script_model for Trees problem

  1. #1
    Junior Member
    Join Date
    Jul 2020
    Location
    Germany
    Posts
    17

    Default local.static = spawn script_model for Trees problem

    Hey again !

    Fighting for some Days now with the follow probelm too:
    I added some Trees in several FFA Maps with this Script:


    Code:
    // Tree 1
    local.static = spawn script_model
    local.static model "static/tree_oak.tik"
    local.static.origin = ( 9 606 -51 )
    local.static.angles = ( 0 )
    local.static.scale = ( 1.2 )
    local.static solid
    The Tees are blocking me of course, they are Solid or the Bounding Box around is so big.

    shot0000.jpg

    If i remove the Line local.static solid i can run thru the Trees.

    Now i want to set the Bounding Box a bit smaller so the Stemm only is Solid, i try to use this Line:
    Code:
    local.static setsize ( -20 -20 300 ) ( 30 30 0 )
    I´ve picked up this Hint from Mohaaaa Forum

    It won´t work for me, the bounded Stemm is still not Solid and can run thru.

    For understanding, this is my complete Code for try to solve this problem:
    Code:
    // Tree 1
    local.static = spawn script_model
    local.static model "static/tree_oak.tik"
    local.static.origin = ( 9 606 -51 )
    local.static.angles = ( 0 )
    local.static.scale = ( 1.2 )
    //local.static solid
    local.static setsize ( -20 -20 300 ) ( 30 30 0 )
    //local.static notsolid
    //local.static immune bullet
    //local.static immune fast_bullet
    //local.static immune bash
    //local.static immune mg
    //local.static immune rifle
    //local.static immune explosion
    //local.static damage
    So Please, where the heck is the problem with this code ?
    Thank you all so much for solving this Probelm !!

    -Ralf / The Fox

  2. #2

    Default

    i think u can have some fun with this mod http://www.mohaaaa.co.uk/AAAAMOHAA/content/fortress-0

    just open the mod and take out the stuff you need.... here is also a tree init (not sure u can walk through it or not) u have to test it.

    but the code of the tree here is:

    Code:
    	local.static = spawn script_model
    	local.static model "static/tree_oak.tik"
    	local.static.origin = ( -486.18 -3052.90 -57.14 )
    	local.static.angles = ( 0 )
    	local.static solid
    	local.static setsize "-16 -16 0" "16 16 180"
    i found it in the decoration folder

  3. #3
    Junior Member
    Join Date
    Jul 2020
    Location
    Germany
    Posts
    17

    Default

    Good evening, Mr. Slimbips !

    Thank you sooo much for this, it´s Works now !!!
    I´ve found the fault in my Script !
    I set the Origin datas in between ( xx xx xx ) ( xx xx xx ) but it have to be "xx xx xx" "xx xx xx"
    After i changed the ( ) ( ) to " " " " it was working ! So it was my bad thinking because the position of
    Code:
    local.static.origin = ( -486.18 -3052.90 -57.14 )
    have to set between the ( )

    So i was thinking the Bounding box needs a position data too, but the bounding box is allready bounded with the Tree by the sdc or sdk or lod Code ...OMG, now i see clear !

    Thank you for Your Help !!
    I´m Happy now !
    GREAT

    -Fox

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •