IMG

 
IMG
IMG   IMG
  Welcome to GTAForums! Be sure to check out the Grand Theft Auto V Forum.

You are not registered! (If you are, click here to login) Registering is fast, free and easy and allows you to instantly reply to any topic on GTAForums.
Why wait? Click here to register your own unique username and become part of the ever-growing community!


( Log In | Register | Revalidate Validation E-mail )
Quick Log-In:
  IMG
       
>
Forum Rules GTA Modification Forums

Please post mod releases in the Mod Showroom

GTAGarage.com
free mod hosting from GTANet, simply login with your GTAForums account details

GTAModding.com
GTANet's modding wiki

GTA Modding Chatroom
provided by irc.gtanet.com (Don't have an IRC client? Click here)


  Reply to this topicStart new topicStart Poll

 car doors will not lock

 cleo3 help
 
spidermight  
Posted: Wednesday, Apr 4 2012, 07:14
Quote Post


Cleo Modder
Group Icon
Group: Members
Joined: Aug 14, 2008

au.gif

XXXXX



can someone please help i cant get the car doors to lock i am using this code :
CODE
014B: $PARKED_PATRIOT = init_parked_car_generator #PATRIOT -1 -1 1 alarm 0 door_lock 1 0 10000 at 217.5684 107.1335 3.8906 angle 169.5958
Users WebsitePMMSNPlayStation Network
  Top
 

 
JACK JONES  
Posted: Wednesday, Apr 4 2012, 08:20
Quote Post


Booom!!!
Group Icon
Group: Members
Joined: Dec 6, 2011

sr.gif

XXXXX



The opcode you use says that "door_lock" means "The chance of the car door being locked" so I think that with this opcode the car door shouldn't be ALWAYS locked (just sometimes). If you want them to be locked forever you should try with this opcode:
CODE
020A: set_car 0@ door_status_to 4

1 = unlocked
2-5 = locked
6 = unlocked, doors stay on car
7 = locked, doors can fall off
8 = locked
but before you use it create a car with this opcode:
CODE
0@ = Car.Create(#PATRIOT, X, Y, Z)

and make them to create only if a player is close to a car point for example radius is 150.0 (X,Y) - this is not necessery but that way you can save some memory. You could use this opcode for a conditional check:
CODE
00EC: actor $PLAYER_ACTOR sphere 0 near_point X Y radius 150.0 150.0

And if a player is not in a radius of this car then destroy car with a "Car.Destroy" opcode.

This post has been edited by JACK JONES on Wednesday, Apr 4 2012, 09:02
PM
  Top
 

 
Ashwin the new boy  
Posted: Wednesday, Apr 4 2012, 09:20
Quote Post


I am The Most Confused Person
Group Icon
Group: Members
Joined: Nov 14, 2010

ia.gif

XXXXX



The opcode 014B: is for generating Cars,
if you want to use this way then
CODE
014C: set_parked_car_generator $PARKED_PATRIOT cars_to_generate_to 1

is necessary to use,

and as JJ told already you,
so just get the Handle of a car to any Variable & use 020A:

download Door Lock Mod request for example
Users WebsitePM
  Top
 

 
ZAZ  
Posted: Wednesday, Apr 4 2012, 15:20
Quote Post


Kernlochbohrer
Group Icon
Group: Members
Joined: Jan 10, 2005

eu.gif

Member Award




QUOTE (spidermight @ Wednesday, Apr 4 2012, 07:14)
can someone please help i cant get the car doors to lock i am using this code :
CODE
014B: $PARKED_PATRIOT = init_parked_car_generator #PATRIOT -1 -1 1 alarm 0 door_lock 1 0 10000 at 217.5684 107.1335 3.8906 angle 169.5958

read here how to do: parkedcars and weaponpickups
scroll down where it says door_lock 0 can be a value between 0 and 100
Users WebsitePM
  Top
 

 

0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)

0 Members:

Topic Options Reply to this topicStart new topicStart Poll
Search topic for posted by (exact match)



 
IMG IMG