Visual Basic help...

Post here about scripting and programming for HaloPC (audio, network, ai, etc.)
Post Reply
User avatar
Phenomena





Posts: 1510
Joined: Thu Jul 01, 2004 3:25 pm
Location: Training my ducks
Contact:

Visual Basic help...

Post by Phenomena »

ok i was getting some help with some VB on some differant forums and some posts this:
OK, try this:

Dim hFile As Integer
Dim VelocityFrom As Single
Dim VelocityTo As Single
Dim Damping As Single

hFile = FreeFile
Open "c:\temp\multiplayer.wind.meta" For Binary As hFile
Get hFile, , VelocityFrom
Get hFile, , VelocityTo
Get hFile, Val("&H18") + 1, Damping
Close

The first two values are read sequentially from the beginning of the file, so it's not necessary to specify an offset. To read the Damping value, however, I'm using the Val function to convert your hex offset to decimal, then adding 1, because VB file offsets are one-based. Any questions?
anyone know what to do it :P i dont want to sound like a total idiot to thisg uy :P lol
Image
And if they don't accept Jesus as their Personal Savior, you can kill them later. How cool is that!
Post Reply