Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expose "CreateHostilePed" to Lua Runtime #3556

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Rylxnd
Copy link
Contributor

@Rylxnd Rylxnd commented Aug 29, 2023

No description provided.

@Regynate
Copy link
Contributor

Why not use

inline Ped CreateHostilePed(Hash modelHash, Hash weaponHash, Vector3 *location = 0)
? 🤔

@Rylxnd
Copy link
Contributor Author

Rylxnd commented Aug 29, 2023

You got me f'd up. I looked for that but couldn't find it lol. I just assumed it got removed

@Rylxnd Rylxnd changed the title Create & Expose "CreatePoolPedEnemy" to Lua Runtime Expose "CreateHostilePed" to Lua Runtime Aug 29, 2023
@pongo1231
Copy link
Member

pongo1231 commented Aug 29, 2023

That won't work as that function takes a different Vector3 object to the one used by the Lua runtime. It was also implemented and afterwards removed before, though since the function does quite a lot I wouldn't be opposed to exposing it to the runtime again.

@Rylxnd
Copy link
Contributor Author

Rylxnd commented Aug 29, 2023

I'll have to wrap it then, like TeleportPlayer

@Rylxnd
Copy link
Contributor Author

Rylxnd commented Aug 29, 2023

It would make it a lot easier for LUA. Since you don't have to type out all natives and can just use the built in function.

@pongo1231
Copy link
Member

Any progress with this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants