Рет қаралды 139
core engine | how to make destoryed car in core game engine in hindi @GabrielSantosStandardCombo
code-
-- Server Script:
local DAMAGEABLE = script:FindAncestorByType("Damageable")
function OnDied(_, _)
-- Detects the death and forwards it to clients
Events.BroadcastToAllPlayers("Scatter"..DAMAGEABLE.id)
end
DAMAGEABLE.diedEvent:Connect(OnDied)
-- Client Script:
local DAMAGEABLE = script:FindAncestorByType("Damageable")
local EXPLOSION_POWER = 2000
local RNG = RandomStream.New()
function OnDied()
-- The client script receive the death event
-- Finds all Static Meshes in the local hierarchy
local childMeshes = script.parent:FindDescendantsByType("StaticMesh")
-- Finds the new parent, a Client-context named "DebrisParent"
local clientContext = World.FindObjectByName("DebrisParent")
for _,mesh in ipairs(childMeshes) do
-- Change parent, as we assume the old one is being destroyed
mesh.parent = clientContext
-- Enable debris physics
mesh.isSimulatingDebrisPhysics = true
-- Some Static Meshes don't support debris physics, so we must check
if mesh.isSimulatingDebrisPhysics then
-- Additional collision settings
mesh.collision = Collision.FORCE_ON
mesh.cameraCollision = Collision.FORCE_OFF
-- Set a life span, so the mesh destroys itself after a few seconds
mesh.lifeSpan = RNG:GetNumber(3, 5)
-- Give a random velocity to the mesh, away from ground
local vel = RNG:GetVector3FromCone(Vector3.UP, 90) * EXPLOSION_POWER
mesh:SetVelocity(vel)
else
-- Destroy meshes immediately if they don't support debris physics
mesh:Destroy()
end
end
end
Events.Connect("Scatter"..DAMAGEABLE.id, OnDied)
core download link-coregames.com/
core game engine tutorial on how to coustomize weapon
instagram- / dhruveshwave
friends today video i show you core game engine tutorial how to coustomize sword in hindi
Dosto Video Pasand aane per video ko LIKE COMMENT and SHARE Kare 😊🙏
Hello :-kzfaq.info?searc...
#coregames
#coreengine
#gamedevelopment
#swordcustomization
#IndieGameDev
#vechical
#vechicaldamage
#inhindi
#vechicalcoustomize
@CoreGamesOfficial
@LotusCracker
@GorkaGames
@GamerTitanYT
@nikmlnkr
your query.
how to make destoryed vechical in core engine in hindi
destoryed vechical in core
destory car in core game engine in hindi
Learn how to make destoryed vechical in core
core game engine ko kaise use kara
coustomise vechical in core engine
Copyright Disclaimer Under Section 107 of the Copyright Act 1976, allowance is made for 'Fair Use'
for purposes such as criticism, comment, news reporting, teaching, scholarship, and research,
Fair use is a permitted by copyright statute that might otherwise be infringing,
Non-profit, educational or personal use tips the balance in favor of fair use