?

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
yuppicide
Lance Corporal
Posts: 21
Joined: Sat Oct 25, 2003 5:24 am

?

Post by yuppicide »

Let's say I do figure out that teleport script here (nobody replied to me there).. where do I put the script so it executes server side on our server?! What do I call the file?! Do I need anything else in the file or will just copying that teleport script for Destroyed Village work?!
Bjarne BZR
Site Admin
Posts: 3298
Joined: Wed Feb 05, 2003 2:04 pm
Location: Sweden
Contact:

Post by Bjarne BZR »

You put it in main/maps/dm and name it the same as the map ( mohdm6.scr as an example ). It will then be called automatically.
Admin .MAP Forums
Image
Head above heels.
yuppicide
Lance Corporal
Posts: 21
Joined: Sat Oct 25, 2003 5:24 am

Post by yuppicide »

Thanks for the reply. I took the script from the other post here. I didn't have a directory main/maps/dm, so I created it. I have stock MOHAA with Spearhead and no custom maps installed right now. Just the stock maps that come with MOH.

So I had to create the maps dir and the dm dir. I saved my mohdm2.scr in there, but it didn't seem to do anything. I just loaded up MOH and ran a server with only me in it to test it out.
yuppicide
Lance Corporal
Posts: 21
Joined: Sat Oct 25, 2003 5:24 am

Post by yuppicide »

Come on.. first person who helps me accomplish my goal will get the remaining balance in my PayPal account transferred to their PayPal. There's not much left, but oh well.. free money is free money.
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

yuppicide wrote:Thanks for the reply. I took the script from the other post here. I didn't have a directory main/maps/dm, so I created it. I have stock MOHAA with Spearhead and no custom maps installed right now. Just the stock maps that come with MOH.

So I had to create the maps dir and the dm dir. I saved my mohdm2.scr in there, but it didn't seem to do anything. I just loaded up MOH and ran a server with only me in it to test it out.
In fact it is supposed to work :? did you check your console for error messages?
Image
yuppicide
Lance Corporal
Posts: 21
Joined: Sat Oct 25, 2003 5:24 am

Post by yuppicide »

I don't see any errors in the console or see anything related to mohdm2.scr.

How do I figure out the numbers in the teleport script?! Maybe I can make a teleport in the middle of "main street" on mohdm2 (destroyed village) just to see it working.
jv_map wrote:
yuppicide wrote:Thanks for the reply. I took the script from the other post here. I didn't have a directory main/maps/dm, so I created it. I have stock MOHAA with Spearhead and no custom maps installed right now. Just the stock maps that come with MOH.

So I had to create the maps dir and the dm dir. I saved my mohdm2.scr in there, but it didn't seem to do anything. I just loaded up MOH and ran a server with only me in it to test it out.
In fact it is supposed to work :? did you check your console for error messages?
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

To be honest I don't know that teleport script by heart :roll:
Image
yuppicide
Lance Corporal
Posts: 21
Joined: Sat Oct 25, 2003 5:24 am

Post by yuppicide »

I figured out how to get coordinates... you go into a game in spec mode, move to where you want and drop down the console and type coord.
smartaiguy
Brigadier General
Posts: 512
Joined: Tue Jul 08, 2003 2:52 pm

Post by smartaiguy »

yuppicide wrote:I figured out how to get coordinates... you go into a game in spec mode, move to where you want and drop down the console and type coord.
yep, also type "tele x y z" to go to certain coords
Fallschirmjager in europe(FIE)! (Mapper/Webmaster)
.Map map reviewer
Look up in the sky! Its a bird its a plane, oh wait its a bird.:lol:
yuppicide
Lance Corporal
Posts: 21
Joined: Sat Oct 25, 2003 5:24 am

Post by yuppicide »

You know what.. it's different when you do Spearhead.. I had to extract the file from a .pk3 and then drop my new script in there. The script is also a bit different when doing it in Spearhead.
smartaiguy
Brigadier General
Posts: 512
Joined: Tue Jul 08, 2003 2:52 pm

Post by smartaiguy »

hmmm... how exactly?
Fallschirmjager in europe(FIE)! (Mapper/Webmaster)
.Map map reviewer
Look up in the sky! Its a bird its a plane, oh wait its a bird.:lol:
Post Reply