scripting.

Technical Chatter here.
Post Reply
User avatar
Shadow LAG
Readers Club




Articulatist 500

Posts: 676
Joined: Sat Apr 02, 2005 5:47 pm
Contact:

scripting.

Post 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.
Long live Detox
Long live leo
Long live the trust.

Sticking it to the man since 16 Jun 2005
Unilat




Articulatist 50

Posts: 100
Joined: Wed Oct 05, 2005 11:51 am

Post 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.
FFIIMan





Posts: 180
Joined: Sat Jul 29, 2006 3:02 pm
Contact:

Post 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.
User avatar
turk645




Artisan Translator Pyre

Posts: 2887
Joined: Wed May 18, 2005 12:32 pm
Location: In my special pillow fort.
Contact:

Post 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.
Image
ScottyGee wrote:Smokers suck >_< (to avoid someone saying it later, both literally and in the derogatory way)
"Before you criticize someone, walk a mile in their shoes. That way after you make fun of them, you still have their shoes."-Dranciel ಠ_ಠ
User avatar
Shadow LAG
Readers Club




Articulatist 500

Posts: 676
Joined: Sat Apr 02, 2005 5:47 pm
Contact:

Post 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.
Long live Detox
Long live leo
Long live the trust.

Sticking it to the man since 16 Jun 2005
XxSilencedDeathxX





Posts: 486
Joined: Wed Apr 27, 2005 2:14 pm
Location: ;_;
Contact:

Post by XxSilencedDeathxX »

Did you remember to press Add Meta To Map after you pressed add reflexive/chunk?
User avatar
Shadow LAG
Readers Club




Articulatist 500

Posts: 676
Joined: Sat Apr 02, 2005 5:47 pm
Contact:

Post 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?
Long live Detox
Long live leo
Long live the trust.

Sticking it to the man since 16 Jun 2005
XxSilencedDeathxX





Posts: 486
Joined: Wed Apr 27, 2005 2:14 pm
Location: ;_;
Contact:

Post by XxSilencedDeathxX »

You have to add the scripts reflexive from elongation or zanzibar to your map before you compile any script.
FFIIMan





Posts: 180
Joined: Sat Jul 29, 2006 3:02 pm
Contact:

Post by FFIIMan »

follow the scripting tutorial to the part when he copies the crate script from elongation then just inject your script.
User avatar
Shadow LAG
Readers Club




Articulatist 500

Posts: 676
Joined: Sat Apr 02, 2005 5:47 pm
Contact:

Post 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
...
Long live Detox
Long live leo
Long live the trust.

Sticking it to the man since 16 Jun 2005
Post Reply