Add setElementCollidableWith server-side
#3681
test code
vehicle1 = createVehicle ( 411, 2044.65942, 1526.35352, 10.67188)
object = createObject( 3578, 2044.40405, 1510.24036, 10.67188)
setTimer(function()
res = setElementCollidableWith(vehicle1,object,false)
print(res)
end, 2000, 1)
The function doesn't work for a new connected players and after reconnect
The function doesn't work for a new connected players and after reconnect
What packet file should I write the info?
is it Server\mods\deathmatch\logic\packets\CPlayerJoinCompletePacket.cpp
The function doesn't work for a new connected players and after reconnect
What packet file should I write the info? is it
Server\mods\deathmatch\logic\packets\CPlayerJoinCompletePacket.cpp
I think you should store informations on the server side and then send it in the CMapInfoPacket. Check how it's done, for example, with setJetpackWeaponEnabled (CGame::SetJetpackWeaponEnabled & CGame::GetJetpackWeaponEnabled)