Jump to content

local player


Gomez10

Recommended Posts

سلام عليكم شفت مثال بل ويكي

عن getLocalPlayer

ذا مثال ابيكم تفهموه لي

function flashRed ( ) 
    -- fade out the local player's camera to red during a second 
    fadeCamera( false, 1.0, 255, 0, 0 ) 
    -- set a 500 ms (0.5 sec) timer to fade it back in before it has completely faded out 
    setTimer( fadeCamera, 500, 1, true, 1.0 ) 
end 
-- we attach our 'flashRed' function to be a handler of "onClientPlayerDamage" when its source (that is, the hit player) is the local player 
addEventHandler( "onClientPlayerDamage", getLocalPlayer ( ), flashRed ) 

ابيكم تفهو لي بل اخص

getLocalPlayer وليش موجوده بل كود وكل شي عنها

Link to comment
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...