View previous topic :: View next topic |
Author |
Message |
Mustang
New Member


Joined: 27 Apr 2014 Posts: 7
20 Bank Notes
Items
|
|
Hello, sorry for my english.
I have problem.
This script works fine in freeride but don't work in mission motorest, tutorial etc.
dim_act 1
dim_frm 1
findactor 0, "car"
findframe 0, "place"
enemy_move_to_car 0, 0
enemy_usecar 0, 0
enemy_car_moveto 0, 0
wait 3000
enemy_usecar
I don't understand why don't work.
On windows XP (a few years ago) all works fine, but in Windows 7 I have still some problem. Thanks. |
|
Back to top |
|
 |
Jorns
Mafiascene Veteran Modder


Joined: 17 Jan 2014 Posts: 49
117 Bank Notes
Items
|
|
do you have in "MOTOREST" or "TUTORIAL" a correct positions (X,Y,Z) of the "PLACE" ? Describe exactly what does not work Is not working fully, or enemy go to car and then go to out of car, without riding ? |
|
Back to top |
|
 |
Mustang
New Member


Joined: 27 Apr 2014 Posts: 7
20 Bank Notes
Items
|
|
Yes, I have correct positions. Human must go to car and go to frame. But human don't go to car, I don't know why.
in Freeride works perfect, and in missions no. |
|
Back to top |
|
 |
Jorns
Mafiascene Veteran Modder


Joined: 17 Jan 2014 Posts: 49
117 Bank Notes
Items
|
|
I think, problem is with the checkpoints ( AI ). When is distance between vehicle and NPC larger then AI use checkpoints. And if there are no checkpoints then AI donīt move, please post screen of the location... |
|
Back to top |
|
 |
Mustang
New Member


Joined: 27 Apr 2014 Posts: 7
20 Bank Notes
Items
|
|
human must go ro car and go to frame (it's just a couple of meters, its only trial script)
frame have not script |
|
Back to top |
|
 |
Jorns
Mafiascene Veteran Modder


Joined: 17 Jan 2014 Posts: 49
117 Bank Notes
Items
|
|
Mustang wrote: |
human must go ro car and go to frame (it's just a couple of meters, its only trial script)
frame have not script |
I have trust. The mission donīt containīs checkpoints in this location. The checkpoints is only for predestrians. When you try move car and enemy to street where walks pedestrians the character can move, or you must add the checkpoints manually (with CheckRE editor) and connect with CHE editor. |
|
Back to top |
|
 |
Mustang
New Member


Joined: 27 Apr 2014 Posts: 7
20 Bank Notes
Items
|
|
Works perfect, very very thanks
I have next little question, how open this door ?
In game is "box406" without position,size etc... (I use Mafia Editor for detect door)
All door have a script door_lock,door_open etc.. but this door nothing.
I created new script:
dim_act 1
findactor 0, "box406"
door_lock 0, 0
door_open 0, 1
door_enableus 0, 1
but don't work. Can you help me ? Thanks |
|
Back to top |
|
 |
Jorns
Mafiascene Veteran Modder


Joined: 17 Jan 2014 Posts: 49
117 Bank Notes
Items
|
|
this is screen from freeride or for mise04-motorest ? |
|
Back to top |
|
 |
Mustang
New Member


Joined: 27 Apr 2014 Posts: 7
20 Bank Notes
Items
|
|
Its from motorest  |
|
Back to top |
|
 |
Jorns
Mafiascene Veteran Modder


Joined: 17 Jan 2014 Posts: 49
117 Bank Notes
Items
|
|
the simplest way is delete door from mission and then add new with Bscriptview. And done..  |
|
Back to top |
|
 |
Ventilator
Mafiascene Veteran Modder


Joined: 08 Apr 2013 Posts: 50 Location: Grevenbroich / Germany 1254 Bank Notes
Items 
|
|
Jorns wrote: | the simplest way is delete door from mission and then add new with Bscriptview. And done..  |
That wonīt work because there is a collision box behind the door.
I simply opened the door with DC-ED but even with opened door there is no way through.
Regards _________________
V3NT1L4T0R |
|
Back to top |
|
 |
MatteoCapoletti
Mafiascene Veteran Modder


Joined: 05 Mar 2013 Posts: 508
977 Bank Notes
Items 
|
|
Mustang wrote: | Works perfect, very very thanks
I have next little question, how open this door ?
In game is "box406" without position,size etc... (I use Mafia Editor for detect door)
All door have a script door_lock,door_open etc.. but this door nothing.
I created new script:
dim_act 1
findactor 0, "box406"
door_lock 0, 0
door_open 0, 1
door_enableus 0, 1
but don't work. Can you help me ? Thanks |
Yeah I had problems with this one
I used Mafia Scene Editor to remove the door and adjust the clipping so that you could get through the door.
Then add a door with bscriptview
then you can script it |
|
Back to top |
|
 |
MrSpudnik
Junior Member


Joined: 31 Oct 2015 Posts: 31 Location: Ukraine 65 Bank Notes
Items
|
|
Hi guys! I hope I am writing in a proper topic for this questions. I encountered a strange problem. In location FREEKRAINA following commands do not work:
enemy_box_goto
enemy_move_to_car
enemy_move_to_frame
enemy_move (put a mark in check.bin)
Enemies do not want to move by commands. While in FREERIDE these scripts work with these commands. |
|
Back to top |
|
 |
ASM.
Mafiascene Veteran Modder


Joined: 10 Jan 2014 Posts: 153
337 Bank Notes
Items
|
|
MrSpudnik wrote: |
Hi guys! I hope I am writing in a proper topic for this questions. I encountered a strange problem. In location FREEKRAINA following commands do not work:
enemy_box_goto
enemy_move_to_car
enemy_move_to_frame
enemy_move (put a mark in check.bin)
Enemies do not want to move by commands. While in FREERIDE these scripts work with these commands.
|
I guess this is due to the lack of navigation data in FREEKRAJINA since it doesn't have a check.bin. You could try to create one yourself with CheckRE and place a few nodes in the area where you need the AI to operate in. |
|
Back to top |
|
 |
MrSpudnik
Junior Member


Joined: 31 Oct 2015 Posts: 31 Location: Ukraine 65 Bank Notes
Items
|
|
Yes. With CheckRE i did not creat a way for enemy, but with Check.bin Editor it worked! Command "enemy_move" is working fine with check.bin! Others are questionable. |
|
Back to top |
|
 |
|
|