View previous topic :: View next topic |
Author |
Message |
lukiscz
Junior Member


Joined: 06 Sep 2013 Posts: 29
70 Bank Notes
Items
|
|
Hello, I'm not scripter, so I think somebody can help me I need to make silly script. Can you tell me, how to be written script for teleport? I just want to move me  |
|
Back to top |
|
 |
MatteoCapoletti
Mafiascene Veteran Modder


Joined: 05 Mar 2013 Posts: 520
1010 Bank Notes
Items
|
|
when I get home I will post it,
I used it in my first mod.... |
|
Back to top |
|
 |
lukiscz
Junior Member


Joined: 06 Sep 2013 Posts: 29
70 Bank Notes
Items
|
|
MatteoCapoletti wrote: | when I get home I will post it,
I used it in my first mod.... | Okay  |
|
Back to top |
|
 |
AsaSK
Mafiascene Veteran Modder


Joined: 24 Feb 2013 Posts: 728 Location: London, England 13660 Bank Notes
Items
|
|
Back to top |
|
 |
MatteoCapoletti
Mafiascene Veteran Modder


Joined: 05 Mar 2013 Posts: 520
1010 Bank Notes
Items
|
|
Code: |
dim_act 1
dim_frm 1
findactor 0,"Tommy"
findframe 0, "stepci"
label 101
detector_waitforuse 3511
player_lockcontrols 1
actor_setplacement 0, 0
player_lockcontrols 0
goto 101
|
Besides setting this code where you want to warp from....you need to place or identify and Item to warp to.
I made different phone booths through out the city as warp locations, both to and from
stepci was an object I placed in a phone booth that was a warp to point.
but because objects get in the way the model name I used is oops.i3d
a model that doesn't exist, but it still sets the location
Asa we all had a little help  |
|
Back to top |
|
 |
lukiscz
Junior Member


Joined: 06 Sep 2013 Posts: 29
70 Bank Notes
Items
|
|
Thank you, Matteo  |
|
Back to top |
|
 |
MatteoCapoletti
Mafiascene Veteran Modder


Joined: 05 Mar 2013 Posts: 520
1010 Bank Notes
Items
|
|
Back to top |
|
 |
lukiscz
Junior Member


Joined: 06 Sep 2013 Posts: 29
70 Bank Notes
Items
|
|
MatteoCapoletti wrote: | you are welcome lukiscz |
My script look like this:
Code: | dim_act 1
dim_flt 1
findactor 0,"TommyHAT"
findframe 0, "_stromec"
label 101
detector_waitforuse 3511
player_lockcontrols 1
actor_setplacement 0, 0
player_lockcontrols 0
goto 101 |
The object to which I want to move is named _stromec.4ds, but it doesn't work  |
|
Back to top |
|
 |
MatteoCapoletti
Mafiascene Veteran Modder


Joined: 05 Mar 2013 Posts: 520
1010 Bank Notes
Items
|
|
lukiscz wrote: | MatteoCapoletti wrote: | you are welcome lukiscz |
My script look like this:
Code: | dim_act 1
dim_flt 1
findactor 0,"TommyHAT"
findframe 0, "_stromec"
label 101
detector_waitforuse 3511
player_lockcontrols 1
actor_setplacement 0, 0
player_lockcontrols 0
goto 101 |
The object to which I want to move is named _stromec.4ds, but it doesn't work  |
Even if you changed Tommy to TommyHAT freeride still thinks of him as Tommy.... so change the name back to Tommy
(if you are using a mission where TomnmyHAT is the default, don't change it)
And when you entered the _stromec model, is that the name you used to enter it with?
My model name in my code was stepci the actual model used was oops.i3d
 |
|
Back to top |
|
 |
lukiscz
Junior Member


Joined: 06 Sep 2013 Posts: 29
70 Bank Notes
Items
|
|
I use DCED. Stepci has to be Standard object or Model object? And I'm editing TUTORIAL  |
|
Back to top |
|
 |
MatteoCapoletti
Mafiascene Veteran Modder


Joined: 05 Mar 2013 Posts: 520
1010 Bank Notes
Items
|
|
lukiscz wrote: | I use DCED. Stepci has to be Standard object or Model object? And I'm editing TUTORIAL  |
For Tutorial TommyHAT is the default...which is wierd because the model that shows up is TommyTAXI
anyway
when bscriptview adds a model that is also used in a script, it adds it as a model object and a standard object....so my guess with DCED (which i only use for stripping missions and changes to traffic and pedestrian patterns) is you have to do both.
I always use Bscriptview to add models, because it does the best job. Once Added I use MWVE to manipulate them, except in Freeride because I don't like the light changes MWVE makes |
|
Back to top |
|
 |
lukiscz
Junior Member


Joined: 06 Sep 2013 Posts: 29
70 Bank Notes
Items
|
|
I tried to make it in BSV. I selected "insert > building" and when I press insert button, it writes "put numeric"  |
|
Back to top |
|
 |
MatteoCapoletti
Mafiascene Veteran Modder


Joined: 05 Mar 2013 Posts: 520
1010 Bank Notes
Items
|
|
that usually occurs when there is a problem with the coordinates you used
they are numerically formed
like 143..21 instead of 143.21 |
|
Back to top |
|
 |
lukiscz
Junior Member


Joined: 06 Sep 2013 Posts: 29
70 Bank Notes
Items
|
|
I asked one czech scripter and he said there must be "dim_frm 1". I rewrited it and it works now. But thank you for main script  |
|
Back to top |
|
 |
MatteoCapoletti
Mafiascene Veteran Modder


Joined: 05 Mar 2013 Posts: 520
1010 Bank Notes
Items
|
|
lukiscz wrote: | I asked one czech scripter and he said there must be "dim_frm 1". I rewrited it and it works now. But thank you for main script  |
I just noticed that script i Posted had a dim_flt instead of frm
how wieird...he was right |
|
Back to top |
|
 |
|
|