Forums Index >> Modding >> Need help with teleporters.



Page : <1> :


It freezes at the loading datablocks for my mod, I need 12 teleporters and this is what I have for my.mis

 

[tt]function 1warp::onenter(%db, %this, %tank)

{

%pos = %tank.getposition();

%rot = %tank.rotation;

%newPos = ("-9.0517 -37.6315 140.297" @ " " @ %rot);

%tank.settransform(%newpos);

}

Datablock powerupdata(1warp)

{

Aipickup = 0;

Emitterduration = 0;

Maxoff = 100;

Minoff = 50;

Shadow = 1;

Shadowanimation = 1;

Shape = "game/data/shapes/common/recharge.dts";

Starton = 0;

Staticshadow = 0;

};

//---------------------------------------------------------------------------

Function 2warp::onenter(%db, %this, %tank)

{

%pos = %tank.getposition();

%rot = %tank.rotation;

%newPos = ("-9.0517 -37.6315 140.297" @ " " @ %rot);

%tank.settransform(%newpos);

}

Datablock powerupdata(2warp)

{

Aipickup = 0;

Emitterduration = 0;

Maxoff = 100;

Minoff = 50;

Shadow = 1;

Shadowanimation = 1;

Shape = "game/data/shapes/common/recharge.dts";

Starton = 0;

Staticshadow = 0;

};

//---------------------------------------------------------------------------

Function 3warp::onenter(%db, %this, %tank)

{

%pos = %tank.getposition();

%rot = %tank.rotation;

%newPos = ("-9.0517 -37.6315 140.297" @ " " @ %rot);

%tank.settransform(%newpos);

}

Datablock powerupdata(3warp)

{

Aipickup = 0;

Emitterduration = 0;

Maxoff = 100;

Minoff = 50;

Shadow = 1;

Shadowanimation = 1;

Shape = "game/data/shapes/common/recharge.dts";

Starton = 0;

Staticshadow = 0;

};

//---------------------------------------------------------------------------

Function 4warp::onenter(%db, %this, %tank)

{

%pos = %tank.getposition();

%rot = %tank.rotation;

%newPos = ("-9.0517 -37.6315 140.297" @ " " @ %rot);

%tank.settransform(%newpos);

}

Datablock powerupdata(4warp)

{

Aipickup = 0;

Emitterduration = 0;

Maxoff = 100;

Minoff = 50;

Shadow = 1;

Shadowanimation = 1;

Shape = "game/data/shapes/common/recharge.dts";

Starton = 0;

Staticshadow = 0;

};

//---------------------------------------------------------------------------

Function 5warp::onenter(%db, %this, %tank)

{

%pos = %tank.getposition();

%rot = %tank.rotation;

%newPos = ("-9.0517 -37.6315 140.297" @ " " @ %rot);

%tank.settransform(%newpos);

}

Datablock powerupdata(5warp)

{

Aipickup = 0;

Emitterduration = 0;

Maxoff = 100;

Minoff = 50;

Shadow = 1;

Shadowanimation = 1;

Shape = "game/data/shapes/common/recharge.dts";

Starton = 0;

Staticshadow = 0;

};

//---------------------------------------------------------------------------

Function 6warp::onenter(%db, %this, %tank)

{

%pos = %tank.getposition();

%rot = %tank.rotation;

%newPos = ("-9.0517 -37.6315 140.297" @ " " @ %rot);

%tank.settransform(%newpos);

}

Datablock powerupdata(6warp)

{

Aipickup = 0;

Emitterduration = 0;

Maxoff = 100;

Minoff = 50;

Shadow = 1;

Shadowanimation = 1;

Shape = "game/data/shapes/common/recharge.dts";

Starton = 0;

Staticshadow = 0;

};

//---------------------------------------------------------------------------

Function 7warp::onenter(%db, %this, %tank)

{

%pos = %tank.getposition();

%rot = %tank.rotation;

%newPos = ("-9.0517 -37.6315 140.297" @ " " @ %rot);

%tank.settransform(%newpos);

}

Datablock powerupdata(7warp)

{

Aipickup = 0;

Emitterduration = 0;

Maxoff = 100;

Minoff = 50;

Shadow = 1;

Shadowanimation = 1;

Shape = "game/data/shapes/common/recharge.dts";

Starton = 0;

Staticshadow = 0;

};

//---------------------------------------------------------------------------

Function 8warp::onenter(%db, %this, %tank)

{

%pos = %tank.getposition();

%rot = %tank.rotation;

%newPos = ("-9.0517 -37.6315 140.297" @ " " @ %rot);

%tank.settransform(%newpos);

}

Datablock powerupdata(8warp)

{

Aipickup = 0;

Emitterduration = 0;

Maxoff = 100;

Minoff = 50;

Shadow = 1;

Shadowanimation = 1;

Shape = "game/data/shapes/common/recharge.dts";

Starton = 0;

Staticshadow = 0;

};

//---------------------------------------------------------------------------

Function 9warp::onenter(%db, %this, %tank)

{

%pos = %tank.getposition();

%rot = %tank.rotation;

%newPos = ("-9.0517 -37.6315 140.297" @ " " @ %rot);

%tank.settransform(%newpos);

}

Datablock powerupdata(9warp)

{

Aipickup = 0;

Emitterduration = 0;

Maxoff = 100;

Minoff = 50;

Shadow = 1;

Shadowanimation = 1;

Shape = "game/data/shapes/common/recharge.dts";

Starton = 0;

Staticshadow = 0;

};

//---------------------------------------------------------------------------

Function 10warp::onenter(%db, %this, %tank)

{

%pos = %tank.getposition();

%rot = %tank.rotation;

%newPos = ("-9.0517 -37.6315 140.297" @ " " @ %rot);

%tank.settransform(%newpos);

}

Datablock powerupdata(10warp)

{

Aipickup = 0;

Emitterduration = 0;

Maxoff = 100;

Minoff = 50;

Shadow = 1;

Shadowanimation = 1;

Shape = "game/data/shapes/common/recharge.dts";

Starton = 0;

Staticshadow = 0;

};

//---------------------------------------------------------------------------

Function 11warp::onenter(%db, %this, %tank)

{

%pos = %tank.getposition();

%rot = %tank.rotation;

%newPos = ("-9.0517 -37.6315 140.297" @ " " @ %rot);

%tank.settransform(%newpos);

}

Datablock powerupdata(11warp)

{

Aipickup = 0;

Emitterduration = 0;

Maxoff = 100;

Minoff = 50;

Shadow = 1;

Shadowanimation = 1;

Shape = "game/data/shapes/common/recharge.dts";

Starton = 0;

Staticshadow = 0;

};

//---------------------------------------------------------------------------

Function 12warp::onenter(%db, %this, %tank)

{

%pos = %tank.getposition();

%rot = %tank.rotation;

%newPos = ("-9.0517 -37.6315 140.297" @ " " @ %rot);

%tank.settransform(%newpos);

}

Datablock powerupdata(12warp)

{

Aipickup = 0;

Emitterduration = 0;

Maxoff = 100;

Minoff = 50;

Shadow = 1;

Shadowanimation = 1;

Shape = "game/data/shapes/common/recharge.dts";

Starton = 0;

Staticshadow = 0;

};

//---------------------------------------------------------------------------

//--- OBJECT WRITE BEGIN ---

//Created with ModWizard v1.3

//Please remember to put 'MOD' at the beginning of your server name.

New SimGroup(MissionGroup) {

.....

Skip a few things

.....

};

New PowerUp() {

DataBlock = "8warp";

Position = "-110.479 -90.8364 101.113";

Rotation = "-0.00172359 -0.000562532 -0.999998 89.3098";

Scale = "1 1 1";

LightBoost = "0";

};

New PowerUp() {

DataBlock = "4warp";

Position = "-63.8626 -93.0926 100.989";

Rotation = "-0.00175196 -0.000617549 -0.999998 86.6255";

Scale = "1 1 1";

LightBoost = "0";

};

New PowerUp() {

DataBlock = "2warp";

Position = "137.925 -172.594 100.973";

Rotation = "-0.000885793 -0.000271854 1 141.045";

Scale = "1 1 1";

LightBoost = "0";

};

New PowerUp() {

DataBlock = "1warp";

Position = "143.977 -11.0912 101.167";

Rotation = "-0.00200727 0.00124159 0.999997 43.445";

Scale = "1 1 1";

LightBoost = "0";

};

New PowerUp() {

DataBlock = "9warp";

Position = "42.5633 -170.576 100.859";

Rotation = "-0.00194523 0.00115788 0.999997 45.3971";

Scale = "1 1 1";

LightBoost = "0";

};

New PowerUp() {

DataBlock = "11warp";

Position = "46.8524 -7.26477 101.035";

Rotation = "-0.000147849 0.00166677 -0.999999 62.9389";

Scale = "1 1 1";

LightBoost = "0";

};

New PowerUp() {

DataBlock = "3warp";

Position = "27.7068 -180.005 100.829";

Rotation = "-0.000612549 0.00229388 -0.999997 43.1749";

Scale = "1 1 1";

LightBoost = "0";

};

New PowerUp() {

DataBlock = "5warp";

Position = "5.46132 -4.27912 100.979";

Rotation = "-0.236177 0.320072 -0.917483 0.253338";

Scale = "1 1 1";

LightBoost = "0";

};

New PowerUp() {

DataBlock = "7warp";

Position = "-68.7074 -176.419 100.95";

Rotation = "8.39396e-005 -0.00248592 0.999997 54.9132";

Scale = "1 1 1";

LightBoost = "0";

};

New PowerUp() {

DataBlock = "12warp";

Position = "-30.0344 -10.2961 101.054";

Rotation = "-0.000513733 -0.00373768 0.999993 35.3933";

Scale = "1 1 1";

LightBoost = "0";

};

New PowerUp() {

DataBlock = "10warp";

Position = "-83.6523 -169.538 101.056";

Rotation = "-0.00280362 -0.00321019 -0.999991 31.2192";

Scale = "1 1 1";

LightBoost = "0";

};

New PowerUp() {

DataBlock = "6warp";

Position = "-78.3065 -10.2319 100.885";

Rotation = "0.00419064 0.00190838 0.999989 42.9578";

Scale = "1 1 1";

LightBoost = "0";

};

};

 

Soo think ya can help me with that?

 

Thursday, June 17, 2004 at 10:11:36 PM

Did you run a dedicated to look for errors?

Thursday, June 17, 2004 at 10:43:01 PM

Ya, there was nothing.

Thursday, June 17, 2004 at 11:34:36 PM

I'm not very good with this stuff, but mine work, so I'll give it a shot.

I don't have these in mine;

//---------------------------------------------------------------------------

Is that just to help separate them in the forums?

Also, do you have the datablocks for them in the.mis file too?

New PowerUp() {

DataBlock = "1warp";

Position = "X X X";

Rotation = "X X X X";

Scale = "1 1 1";

LightBoost = "0";

};

Friday, June 18, 2004 at 12:21:31 AM

Function bluesectorwarp::onenter(%db, %this, %tank)

{

%pos = %tank.getPosition();

%rot = %tank.Rotation;

%newPos = ("-32.7794 408.635 261.406" @ " " @ %rot);

%tank.setTransform(%newPos);

}

Datablock powerupdata(bluesectorwarp)

{

Aipickup = 0;

Emitterduration = 0;

Maxoff = 100;

Minoff = 50;

Shadow = 1;

Shadowanimation = 1;

Shape = "game/data/shapes/common/recharge.dts";

Starton = 0;

Staticshadow = 0;

};

Instructions

Bluesectorwarp <--- change this to wathever datablock ud like to have. U have to change the both of them!!

-32.7794 408.635 261.406 <--- change this to the coordinates where ud like to be teleported to

Than later add a reload gate with mod wiz and it looks like this:

New PowerUp() {

DataBlock = "Reload";

Position = "167.059 23.0453 132.095";

Rotation = "0.472583 0.379153 0.795556 56.122";

Scale = "1 1 1";

LightBoost = "0";

};

Change

DataBlock = "Reload";

To whatever u putted as datablock

Ex:

DataBlock = "bluesectorwarp";

Friday, June 18, 2004 at 4:27:31 AM

If you take a look above I did all of that. And the //------ is to help me by sperating each teleporter datablock. (anything with // before it doesn't get read so it's good for seperating.)

Friday, June 18, 2004 at 11:51:14 AM

Change this lines...

 

[tt]function 1warp::onenter(%db, %this, %tank)

{

%pos = %tank.getposition();

%rot = %tank.rotation;

%newPos = ("-9.0517 -37.6315 140.297" @ " " @ %rot);

%tank.settransform(%newpos);

}

Datablock powerupdata(1warp)

{

Aipickup = 0;

Emitterduration = 0;

Maxoff = 100;

Minoff = 50;

Shadow = 1;

Shadowanimation = 1;

Shape = "game/data/shapes/common/recharge.dts";

Starton = 0;

Staticshadow = 0;

};

New PowerUp() {

DataBlock = "1warp";

Position = "143.977 -11.0912 101.167";

Rotation = "-0.00200727 0.00124159 0.999997 43.445";

Scale = "1 1 1";

LightBoost = "0";

 

To this...

function warp1::onenter(%db, %this, %tank)

datablock powerupdata(warp1)

new PowerUp() {

DataBlock = "warp1";

And do same to others too. : )

You don't have to let go of one rope before grabbing the other. But you'll have to let go of one if you want to swing forward.

Last edited: Friday, June 18, 2004 at 12:32:39 PM

Friday, June 18, 2004 at 12:29:34 PM

I can only see one problem out of what you told me but thanxs for you help.

[tt] was there cause I wanted to put it in teleltype for the forum but it didn't work.

And it doesn't matter where the number goes or what it's called. It could be 6rablablaba7blababla3 and it wouldn't matter

Only thing is the new powerup part but that works even with capitals as it's worked while it was still a reload gate.

Thanks for your time and nice try. But it must be something else.

Friday, June 18, 2004 at 6:32:04 PM

 

 

And it doesn't matter where the number goes or what it's called. It could be 6rablablaba7blababla3 and it wouldn't matter

 

It does matter... If you would bother to try out... It could work out...

PS. My last reply in this thread : )

You don't have to let go of one rope before grabbing the other. But you'll have to let go of one if you want to swing forward.

Friday, June 18, 2004 at 6:42:09 PM

WOWIE thats some script! Who made that 187??? He must be better then me... Well back to the books! Also have you tried... Putting them in oreder the warps are out of order making them out of place confusing the system and it freezes cause the form lost focus! Maybe so maybe not! But I only glanced at it I should try a synex test for errors but I do not feel like it!

Well later for now!

 

Sunday, June 20, 2004 at 11:58:24 PM

Hey Yami u posted the instructions I gave u! :'(

Stealer.. XO

Another thing, u cant have CAPS in the teleporter script!

Here is the best one, use this one so it is better, coz it hasnt got caps..

May take a bit to load

Here

 


Thursday, June 24, 2004 at 2:33:09 PM

Lol ok ok I got those teleporter insructions for Art :P happy?

Thursday, June 24, 2004 at 3:11:10 PM

HMMM FROM! Art not for art lol


Thursday, June 24, 2004 at 3:15:52 PM

Page : <1> :

insert quote insert url insert email insert image bold italic underline superscript subscript horizontal rule : : Help on using forum codes

Add comment:

HTML is disabled within comments, but ZBB Code is enabled.

Back to the top

Web site designed, maintained and funded by -z- and Dan MacDonald