zworld-em/Content/Script/BP/Char/FXCharacter.lua

45 lines
1.1 KiB
Lua
Raw Normal View History

2025-05-11 22:07:21 +08:00
--
-- DESCRIPTION
--
-- @COMPANY **
-- @AUTHOR **
-- @DATE ${date} ${time}
--
require "UnLua"
---@type NiagaraActor_C
local M = UnLua.Class()
-- function M:Initialize(Initializer)
-- end
-- function M:UserConstructionScript()
-- end
local BindKey = UnLua.Input.BindKey
BindKey(M, "Q", "Pressed", function(self, Key)
self:CreateNiagara(3)
-- local FVector = UE.FVector
-- local Pos = self:K2_GetActorLocation()
-- print("ouczbs",Pos.x, Pos.y, Pos.z)
-- local NDCWriter = self:CreateNiagara(3)
-- print("ouczbs ", NDCWriter,Pos.x, Pos.y, Pos.z)
-- NDCWriter:WriteVector("Position", 0, FVector(Pos.x + 10,Pos.y + 10, Pos.z))
-- NDCWriter:WriteVector("Position", 1, FVector(Pos.x + 20,Pos.y + 10, Pos.z))
-- NDCWriter:WriteVector("Position", 2, FVector(Pos.x + 30,Pos.y + 10, Pos.z))
end)
-- function M:ReceiveEndPlay()
-- end
-- function M:ReceiveTick(DeltaSeconds)
-- end
-- function M:ReceiveAnyDamage(Damage, DamageType, InstigatedBy, DamageCauser)
-- end
-- function M:ReceiveActorBeginOverlap(OtherActor)
-- end
-- function M:ReceiveActorEndOverlap(OtherActor)
-- end
return M