vovo4ka Posted March 10, 2010 Share Posted March 10, 2010 In my script I need to hide/destroy player ped sometimes (and respawn him later). Im tryin SetElementVisible, destroyElement but it doesnt works with player. SetElementAlpha not exactly suitable. I need to disable any physical impact player on the world. Any suggestions Link to comment
Gamesnert Posted March 10, 2010 Share Posted March 10, 2010 In what way isn't setElementAlpha suitable? Link to comment
vovo4ka Posted March 10, 2010 Author Share Posted March 10, 2010 For example other players can collide with 0-alpha player or shoot him etc. And if I dont disable allControls ped continuing walkin. But I need to check control state Link to comment
Kayl Posted March 10, 2010 Share Posted March 10, 2010 Where is the camera of the hidden player looking at ? From your need to disable allControls it seems you don't really need the ped to be in the world at all. You could freeze the ped (setPedFrozen) and onClientRender of the hidden player, set their position to a position below the world. That way nobody can collide with them and the onClientRender thing guarantees that they won't come back on the land (since they can't fall as normal players under the map would). You could maybe also play with the setElementCollisionsEnabled but this would have to be propagated to all players, whereas the "freeze under the map" thing only affects the hidden player. Link to comment
vovo4ka Posted March 10, 2010 Author Share Posted March 10, 2010 Where is the camera of the hidden player looking at ? Free fly setElementCollisionsEnabled wow! thx! Not seen this function before I will try this with SetElementAlpha -- thx! It work's very very fine! Link to comment
Slothman Posted March 17, 2010 Share Posted March 17, 2010 if you wan tthem gone altogether and unable to even see what others are doing, you can banish them to another dimension or interior as well Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now