Hi ! I’m working on a script for the Facility from GTA:Online.
It works kinda well for the most part like the elevator and Avenger support too.
I was looking through the code of the game to make the big doors outside to animate, everyting works fine like the audio and placing all entities to make it clean but I’m blocked now on how to use the native PlayEntityScriptedAnim to get those doors to open.
I tried everything that I could think but there’s also not that much documentation about this native and looking in the script of the game doesn’t help either, it’s just a mess.
If anyone knows how this native works, I’d love to be able to put it in use in game for the Facility !
If there is an animation to open a door, you should be able to simply use TaskPlayAnim, or may look into PlayEntityAnim, both of which take an entity, animation dictionary, animation name, and then some extra parameters which vary between the natives.
I don’t have the code anymore. When we tried it with my friend, it was with data view on the Diamond Casion Roulette because it needs this native too to animate the table correctly without clutter.
But it didn’t work at all and we abandonned the project since. I’m trying it to make it work again as of today on the Facility Doors but I don’t know where to start at all now