Quantcast

Jump to content

» «
Photo

[CLEO] Door opening animation

2 replies to this topic
swaggerolardo
  • swaggerolardo

    Player Hater

  • New Members
  • Joined: 05 Aug 2014
  • Poland

#1

Posted 14 August 2014 - 05:35 PM

Hi!

 

I'm making mod similar to fastman92's Remote Lock Car, because it doesn't working with my version of GTA (readme says it should work, but doesn't, game get crashed).

I wrote a code in Sanny Builder (it wasn't too hard), but when I press key responsible for opening the doors, they automatically appear in the end position.

How to add animation to doors as in fastman's mod?

 

Thanks in advance.


fastman92
  • fastman92

    фастман92 | ف

  • Members
  • Joined: 28 Jul 2009
  • None

#2

Posted 14 August 2014 - 06:16 PM

You need to make a loop where you have a timer and 'wait 0' when doors are opening.

08A6: open_car_door_a_bit 98@ door 0 to 0.0

Let's say one second (1000 miliseconds) of timer 32@ will be 1.0 of doors opened, doors will be fully opened after one second.

In loop, put a division of timer 32@ by the specified amount of time, to get a value of how much doors are opened.

As of Remote Lock Car, please read this topic: http://gtaforums.com...t-them-working/
  • swaggerolardo likes this

swaggerolardo
  • swaggerolardo

    Player Hater

  • New Members
  • Joined: 05 Aug 2014
  • Poland

#3

Posted 14 August 2014 - 07:18 PM Edited by swaggerolardo, 14 August 2014 - 07:20 PM.

Thanks, it works.

 

Topic can be closed now.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users