Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Kenneth Law
1
Script and Content Requests / Re: How to lock a bike?
« on September 12th, 12:49 AM »
oh oh ok
2
General Discussion / Re: New feature request
« on September 11th, 07:43 AM »
Quote from Doom_Kill3R on September 11th, 07:37 AM
Its not implemented yet
Alright...Any idea when it will be on?
3
General Discussion / Re: New feature request
« on September 11th, 07:16 AM »
Quote from Doom_Kill3R on September 11th, 05:53 AM
Quote from Kenneth Law on September 11th, 01:48 AM
How? Can a player decide whichever weather he wants via Client-Side?
Nah you can just set a player's weather client side if his world is different, this will change the weather only for that player and not the whole server.
Sounds not bad. Could you tell me how to edit? What's the code for it?
4
General Discussion / Re: New feature request
« on September 11th, 01:48 AM »
Quote from Athanatos on September 10th, 07:52 PM
Client-side weather settings should be enough.
How? Can a player decide whichever weather he wants via Client-Side?
5
Script and Content Requests / Re: How to lock a bike?
« on September 11th, 01:40 AM »
Quote from Athanatos on September 10th, 07:56 PM
Quote from Kenneth Law on September 10th, 09:57 AM
I've used the code vehicle.Locked=true but players can still get in the bike.
Read posts carefully, and don't use google translate.
I wasn't using any translator man. And which post exactly do you refer to?
6
Script and Content Requests / Re: How to lock a bike?
« on September 10th, 02:34 PM »
Quote from MatheuS on September 10th, 12:45 PM
Quote from Kenneth Law on September 10th, 11:49 AM
Quote from MEGAMIND on September 10th, 11:30 AM
Quote from Kenneth Law on September 10th, 09:57 AM
How can I lock a bike? I've used the code vehicle.Locked=true but players can still get in the bike. So any way to lock it?
hmm well, try to eject player from vehicle and display message its locked but define if its vehicle 191 for bike
It's too wired to eject a player from a bike. In fact, the server Argonath RPG has found a way to avoid a player from getting on a bike without ejection. But I don't know how that is done. So I want someone to tell me.
try using this:

Code: [Select]
function onPlayerEnteringVehicle( player, vehicle, door )
{
if( vehicle.Model == 191 ) return 0;
}
Cool! It works! Thanks a lot for your help!
7
Script and Content Requests / Re: How to lock a bike?
« on September 10th, 11:49 AM »
Quote from MEGAMIND on September 10th, 11:30 AM
Quote from Kenneth Law on September 10th, 09:57 AM
How can I lock a bike? I've used the code vehicle.Locked=true but players can still get in the bike. So any way to lock it?
hmm well, try to eject player from vehicle and display message its locked but define if its vehicle 191 for bike
It's too wired to eject a player from a bike. In fact, the server Argonath RPG has found a way to avoid a player from getting on a bike without ejection. But I don't know how that is done. So I want someone to tell me.
8
Script and Content Requests / How to lock a bike?
« on September 10th, 09:57 AM »
How can I lock a bike? I've used the code vehicle.Locked=true but players can still get in the bike. So any way to lock it?
9
General Discussion / Re: New feature request
« on September 10th, 08:51 AM »
Any staff here feels free to reply to this post? ;D
I am really in need of this new function in order for my server to be improved.
10
General Discussion / New feature request
« on September 10th, 08:42 AM »
It will be much better if we can set weather and time for a certain world.
Just wondering if it can be realized in the future?
11
General Discussion / Re: Little Help Needed
« on September 10th, 08:25 AM »
I hope it can be possible that we can set different time and weather for each separate world.
Because I am currently planning an update of my racing server including adding different settings for each race which occurs in different world.
12
Bugs and Crashes / Bug comes with boat's spawn
« on May 6th, 02:55 PM »
I found a very interesting bug which took me about two days to finally figure out how it occurred. The bug is about the spawn of vehicles and the following is the description of it.
Whenever I spawn a boat anywhere, the boat will simply stay at the spawn location without being affected by gravity if there is no player nearby it. And only when a player gets close to the boat, it falls down. For instance, the spawn position for  a boat is Vector(0, 0, 500), and if none of player is around it after it spawns, it will keep stay in the sky at the altitude of 500 instead of falling down itself for the sake of gravity. If you want to test this strange phenomenon, just use player.SetCameraPos to move your view to where the boat is supposed to spawn and spawn it with command while you make sure there is no one near the boat, and take a look at the funny frozen boat being suspended in sky.
This bug only works for boat but not for other types of vehicles. I don't know why but it is really irrational!
13
Quote from umar4911 on April 12th, 10:07 AM
Quote from Kenneth Law on April 12th, 09:45 AM
I tried to add akina hill through the scripts with 'CreateObject', which works well with .xml.
But as I joined the server the mountain didn't appear.
I then took a helicopter and drove it around the area where I've placed the hill.
As soon as I flied into a certain range and height, the mountain magically appeared but not with an intact look.
It's weird!
what's the draw distance for the object? Trying again after changing the distance to 299 or 300
I changed the distance to 299 and 300, neither of them are working tho
Still the mountain is invisible
14
I tried to add akina hill through the scripts with 'CreateObject', which works well with .xml.
But as I joined the server the mountain didn't appear.
I then took a helicopter and drove it around the area where I've placed the hill.
As soon as I flied into a certain range and height, the mountain magically appeared but not with an intact look.
It's weird!
15
I used ScriptProcess in client side for 3D GUI label display but there seemed to be a serious frame issue after this was added.
I wrote some codes for transforming the 3D position of the world into screen position and moving the labels to the position accordingly into ScriptProcess and found that this function which performs callback per frame would lead to a frame skipping, especially when there were too many lines included in the event.
This has been tested for lots of times by making a comparison between the two situations in which I reserved and removed the ScriptProcess.
An evident distinction in frame rate was proved existing between them.
So is there anything wrong with the codes in client script being processed each frame since the frame rate looks unstable and low while they do so?