Page 1 of 1

scripting.

Posted: Wed Aug 16, 2006 5:46 pm
by Shadow LAG
Hey I am 5 minutes new to scripting. I opened up warlock and I pasted

(script startup nograv

(physics_set_gravity 0)

(sleep 0)

)

into my warlock, then I click compile, Then I get an error saying it needs one more! or somthing. I have no clue what I am doing.

Posted: Thu Aug 17, 2006 5:34 am
by Unilat
I believe your syntax is wrong and I think the name of the function needs to 32 characters long or something of that sort.

Posted: Thu Aug 17, 2006 5:46 am
by FFIIMan
just do->

Code: Select all

(script startup no_grav
(physics_set_gravity 0)
)
<- also u dont need a 32 character long title, u can do anything(i dont no the max length) test_script, test1, test, gravity, gra_vity.

Posted: Thu Aug 17, 2006 9:11 am
by turk645
the sleep thing was my fault, i told him to put it in there due to the fact i didnt know if broken halo ever fixed a glitch with there beta version that im used to using.

Posted: Thu Aug 17, 2006 6:32 pm
by Shadow LAG
One of my buddys said I need to extract script data from one map to another. I click copy to clipboard one one side of the map and then on the other I click add chunk/reflexive of one and it doesn't inject.

Posted: Thu Aug 17, 2006 8:16 pm
by XxSilencedDeathxX
Did you remember to press Add Meta To Map after you pressed add reflexive/chunk?

Posted: Fri Aug 18, 2006 10:39 pm
by Shadow LAG
Ok I did this. But when I add the script to the injected meta the map either freezes at mainmenu.map or blackscreen. It seems to only work on maps with pre-scripts. Has anyone figured out a solution to this?

Posted: Sat Aug 19, 2006 8:22 am
by XxSilencedDeathxX
You have to add the scripts reflexive from elongation or zanzibar to your map before you compile any script.

Posted: Sat Aug 19, 2006 8:33 am
by FFIIMan
follow the scripting tutorial to the part when he copies the crate script from elongation then just inject your script.

Posted: Sat Aug 19, 2006 10:57 am
by Shadow LAG
XxSilencedDeathxX wrote:You have to add the scripts reflexive from elongation or zanzibar to your map before you compile any script.
when I add the script to the injected meta the map either freezes at mainmenu.map or blackscreen
...