Jump to content

how do you prevent ppl from getting into your vehicle?


NakedSummer
 Share

You are about to reply to a thread that has been inactive for 1236 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

It should be a "safety" setting somewhere, restricting to "Owner", "Group" or "Everyone". Try to read the notecard you got with the vehicle. Not all vehicles has this feature, it depends if the scripter put it in. If the scripts are modify, maybe this function can be added. Try to ask in the creator forums, in the "Scripts" part. I have found them to be very helpful.

 

Link to comment
Share on other sites

If your vehicle hasn't got an access feature of its own, paste this in a new script in your vehicle. Only works if your vehicle is Mod. If your vehicle is No Mod, then buy a Mod vehicle, or one with an access feature.



integer ACCESS=0; // 0=owner only, 1=group, 2=everyone

default{
    changed(integer Change){
        if(Change&CHANGED_LINK){
            integer Link=llGetNumberOfPrims();
            if(Link>llGetObjectPrimCount(llGetKey())){
                key User=llGetLinkKey(Link);
                if(!(
                    User==llGetOwner()||ACCESS==2||
                    (ACCESS==1&&llSameGroup(User))
                ))llUnSit(User);
            }
        }
    }
}

 

Link to comment
Share on other sites

The vehicle script needs to be designed to handle this.

In the last vehicle I made I added an additional sit target behind the exhaust tubes of the engines (so you don't even have to see the passenger) - followed by an instant unsit of course. If you forgot to lock the seats there is a manual 1000m eject for the co seat too.

So if your vehicle doesn't have any passenger features, get another one. (not mine, I don't sell that stuff, it's no advertisement)

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 1236 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...