Page 1 of 1

script...oh so close

Posted: Tue Jun 17, 2003 10:25 pm
by rayzer
all i want to do...is add a couple of boxes here and there in omaha...this is the script i wrote...if wrong plz rectify and /or when i attempt to set origin,it asks me to 'tele or face' to set.how do i use that and do i need a special .cfg file/and words added to the mohaa.exe...ie +set developer blah blah to activate..thanx...hope thats understandable :)

// OMAHA BEACH OBJECTIVE DM
// BY ADAM "SENN" BELLEFEUIL

main:

level waittill prespawn

local.ammocrate = spawn models/miscobj/ammocrate.tik
local.ammocrate.origin = (732.44 -1325.18 -503.88)
local.ammocrate.angle = 90
local.ammocrate.solid
local.ammocrate immune bullet
local.ammocrate immune fast_bullet
local.ammocrate immune bash
local.ammocrate immune mg
local.ammocrate immune explosion

Posted: Tue Jun 17, 2003 11:53 pm
by nuggets
no . after local.ammocrate and before spawn
.angle needs 3 variables (x y z)
i think it should be .angles as well, not 100% sure on that though
.solid needs a 1 or 0 value (1 = true)
not sure about origin either, haven't a clue where that would go (i'm not saying this is wrong)

Posted: Wed Jun 18, 2003 12:06 am
by rayzer
the origin is definately correct....this was achieved by going in-game and typing coord in the console standing exactly where u want the box to be placed.i also think u dont need a (.) before spawn if theres a = sign there.
i thought solid was all u needed to state a 'solid 'object but ill check into that for the 1....lastly u may be absolutely right on the 3 variables on the angle(s)...got loads to look into thanx for the ideas...ill get back to ya

Posted: Wed Jun 18, 2003 12:11 am
by nuggets
local.ammocrate.= spawn models/miscobj/ammocrate.tik
that dot there, .'s are only needed when defining property states after objects

Posted: Wed Jun 18, 2003 12:20 am
by rayzer
ahh yes gotcha...nice spot...editing script now and on post...ill keep editing on post untill its a working script..keeping u informed of course

:)