-
Similar Content
-
[RELEASE] Locate Vehicle (VKC Support) [Updated for 1.0.7]
By salival,
- 1.0.7
- locate vehicle
- (and 3 more)
- 14 replies
- 4657 views
-
- 0 replies
- 1358 views
-
[EU]AI|PVP|HELI+|LOOT+|Cars+|Guns+|Bank|Trader|NoStam|SpawnSelect|Mission|Namalsk|Takistan|Expansion|Time2Kill
By Harkness,
- spawn select
- missions
- (and 24 more)
- 2 replies
- 3139 views
-
- 8 replies
- 3622 views
-
- 1 answer
- 934 views
-
- Advertisement
Question
Schalldampfer
https://github.com/andgregor/dayZ-AI-Bus-Route
While testing this old script in Epoch 1.0.6.1, I got an issue:
When I ride on the bus which an AI is driving, the bus start driving well.
But after running about some ten or hundred meters away,
the bus suddenly stop and damage me as if there's an invisible barrier in front of me,
and it starts bouncing like a football there.
I want any idea to make the script works well.
---
I have changed a part of init_bus.sqf from
//Uncomment for normal dayZ
//dayz_serverObjectMonitor set [count dayz_serverObjectMonitor,_axeBus];
//For Epoch - Comment out for normal dayZ | Credit to Flenz
PVDZE_serverObjectMonitor set [count PVDZE_serverObjectMonitor,_axeBus];
to
//Uncomment for normal dayZ
dayz_serverObjectMonitor set [count dayz_serverObjectMonitor,_axeBus];
//For Epoch - Comment out for normal dayZ | Credit to Flenz
// PVDZE_serverObjectMonitor set [count PVDZE_serverObjectMonitor,_axeBus];
to make it work in 1061, and player_axebus.qf to
_nrBuses=[];
while {alive player}
do
{
while {count _nrBuses <1}do{_nrBuses = nearestObjects [getPos player, [axeBusType], 600];sleep 3;};
{
if(_x getVariable["isAxeAIBus",0]==1)then{
_getInEvent = _x addEventHandler ["GetIn", {_this execVM "busroute\player_join_bus.sqf"}];
_x setVariable ["axeGetInBusEv",_getInEvent,false];
_getOutEvent = _x addEventHandler ["GetOut", {_this execVM "busroute\player_leave_bus.sqf"}];
_x setVariable ["axeGetOutBusEv",_getOutEvent,false];
_x setVariable ["isAxeAIBus",2,false];
//Nearby Survivors
_pos_bus = getpos _x;
_survivors = {isPlayer _x && _x distance _pos_bus < 250} count playableunits > 0;
if (_survivors) then{
_axeBusDriver = driver _x;
_axeBusDriver stop true;
_axeBusDriver setBehaviour "STEALTH";
_axeBusDriver action ["LightOn",_x];
sleep .2;
_axeBusDriver action ["LightOff",_x];
sleep .2;
_axeBusDriver action ["LightOn",_x];
sleep .2;
_axeBusDriver action ["LightOff",_x];
_axeBusDriver setBehaviour "CARELESS";
_axeBusDriver stop false;
};
};
}forEach _nrBuses;
_nrBuses=[];
};
to make it work for any player skin.
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now