Jump to content

مساعده بسيطه في سكربت


Recommended Posts

هلا شباب

ابي اسوي سكريبت

"OnColShapeHit" = Function

Function = setPedAnimation

الكود

  
  
runwayped1 = createPed (16, -1344, 418, 7.2, 90) 
runwayped2 = createPed (16, -1344, 382, 7.2, 90) 
runwayped3 = createPed (16, -1344, 347, 7.2, 90) 
run1col = createColCuboid (-1388.8000488281, 420, 5.5, 13.7, 10) 
  
  
function toggleFreeze () 
    setPedFrozen ( runwayped1, true ) 
    setPedFrozen ( runwayped2, true ) 
    setPedFrozen ( runwayped3, true ) 
end 
  
function takeoff1 () 
    setPedAnimation( runwayped1, "ped","ON_LOOKERS", "wave_loop", 4000) 
end 
addEventHandler( "onResourceStart", getRootElement(), toggleFreeze ) 
addEventHandler( "onColShapeHit", run1col, takeoff1) 
  
  

ماعليكم من

runwayped2

و

runwayped3

للي يجيني بـ كنسل السيرفر

Bad argument @ 'createColCuboid"

Bad argumrnt @ 'addEventHandler' [Expected element at argument 2, got boolean]

Link to comment

ColCuboid Syntax

colshape createColCuboid ( float fX, float fY, float fZ, float fWidth, float fDepth, float fHeight ) 

 

Arguments

fX: The X position of the collision cuboid's western side 
fY: The Y position of the collision cuboid's southern side 
fZ: The Z position of the collision cuboid's lowest side 
fWidth: The collision cuboid's width 
fDepth: The collision cuboid's depth 
fHeight: The collision cuboid's height 
Link to comment

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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