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

createLight does not affect players that died in a vehicle explosion #517

Open
ArranTuna opened this issue Sep 20, 2018 · 0 comments
Open
Labels
bug Something isn't working
Milestone

Comments

@ArranTuna
Copy link
Collaborator

ArranTuna commented Sep 20, 2018

This issue was reported by @StifflersMom

Describe the bug
If you respawn a player with the same skin after the player is exploded in a vehicle, the light effects are gone for the player.

To Reproduce
You only need to be admin and you need the admin panel. Also runcode is needed, but no other resources!

Perform the following commands:

  • crun fadeCamera(true)
  • crun setCameraTarget(localPlayer)
  • srun spawnPlayer(getRandomPlayer(),0,0,5,0,7)
  • srun createPed(7,0,0,5)
  • crun createLight(0, 0, 0, 1000, 3000,255,0,0)
  • Your player and the ped is illuminated by red light.
  • give your player a Dune.
  • Drive a little bit away from the created ped.
  • Blow your vehicle.
  • srun spawnPlayer(getRandomPlayer(),0,0,5,0,7)
  • This spawns the player at your starting position without changing the skin.
  • Now you can see, the light function is not applied to your player. If you change the players skin, the light is functional again.

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
After spawning and creating the ped:
image

The light function:
image

Player as driver in the dune
image

Player after exploding and respawning with the same skin:
image

Player after changing the skin:
image

MTA Client: v1.5-release-7458

MTA Server: v1.5-release-7458

Additional context
From https://bugs.mtasa.com/view.php?id=9024

@ArranTuna ArranTuna added the bug Something isn't working label Sep 20, 2018
@qaisjp qaisjp added this to the Backlog milestone Sep 20, 2018
@qaisjp qaisjp changed the title createLight has no more effect to player, if player explodes in a vehicle createLight does not affect players that died in a vehicle explosion Sep 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants