Jump to content

shadow according to sunlight


Real Og

Recommended Posts

anyone know what im doing wrong here its says "Not enough actual parameters. Expected 2 params." while compiling it.

help me

 

{$CLEO .cs}

//-------------MAIN---------------

thread "ENABLE_SUN_SHADOWS"

:ENABLE_SUN_SHADOWS_1
wait 0
if
   Player.Defined($PLAYER_CHAR)
else_jump @ENABLE_SUN_SHADOWS_1

while true
    wait 0
    
    // Check if it's daytime and the sun is visible
    if
        0109:   player $PLAYER_CHAR made_progress_with_date_time
        and
        010C:   actor $PLAYER_ACTOR near_actor $PLAYER_CHAR radius 40.0 40.0 sphere 0
    then
        // Enable shadows for objects
        0380: set_object $PLAYER_CHAR shadows 1  // Enable object shadows
        
        // Enable shadows for pedestrians
        0380: set_actor $PLAYER_ACTOR shadows 1  // Enable pedestrian shadows
        
        // Set ambient shadows intensity
        07DD: set_ambient_shadows_intensity 255
        
    else
        // Disable shadows
        0380: set_object $PLAYER_CHAR shadows 0  // Disable object shadows
        0380: set_actor $PLAYER_ACTOR shadows 0  // Disable pedestrian shadows
        
        // Reset ambient shadows intensity
        07DD: set_ambient_shadows_intensity 0
    end
    
end
 

help me

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...