Like that?Code:Effect.server.Run(null, util.TableToArray({"fx/weapons/vm_rocket_launcher/pfx_fire_rocket_smokeout", player.transform.position, UnityEngine.Vector3.get_up(),null,true}))
Using game particles / effects (C#)
Discussion in 'Rust Development' started by LaserHydra, Apr 24, 2015.
-
No...You need to provided the parameters to match the method signature exactly.
Here is more information on the optional params that are being using.
https://msdn.microsoft.com/en-us/library/dd264739.aspx -
my main problem is, that I can't find the place for the stuff I had in that Lua one.
What is
strName
posWorld
normWorld
sourceConnection
broadcast
used for?
Im just going to think that the strname = "fx/weapons/vm_rocket_launcher/pfx_fire_rocket_smokeout" -
Then your statement "I know how it works in LUA" was incorrect, you just got the code handed to you without learning what it actually does. To know what each parameter does you will need look into the Effect class to see what each one does.
-
yea basicly what I ment was that I know the call, and where I need to put the fx name, but I didnt know more
[DOUBLEPOST=1437143419][/DOUBLEPOST]Well what I think, is that posWorld = player.transform.position
sourceConnection = player.connection
broadcast = true
I just have no idea what "normWorld" is
[DOUBLEPOST=1437144127][/DOUBLEPOST]im trying normWorld = Vector3 or Vector3.get_up()
