Help with your scripting

entity.callFn(obj,targ,func, table?)

entity.callFn(obj,targ,func, table?)

Postby ant0N » 30 Jul 2015, 12:42

using this command, you cannot pass a table?
if not, how to pass 2 or more parameters?
Sorry for my English. :)
User avatar
ant0N
Skyline Moderator
Skyline Moderator
 
Posts: 415
Joined: 02 Nov 2012, 12:49
Location: Россия, Москва
Skill: Programmer
Skill: 3D Modeller

Re: entity.callFn(obj,targ,func, table?)

Postby SolarPortal » 30 Jul 2015, 14:04

Currently, there is no way at the moment. Another user did ask for this a while back, Shando maybes.
For now to get you going, you could call 3 "entity.callFn()" functions.

function SetVar1(value) -- store variable 1 inside script
function SetVar2(value) -- store variable 2 inside script
function SetActiveFunction(value) -- call the executing function using variable 1 & 2.
Skyline Game Engine - Lead Dev.
Please provide as much info as possible when asking for help.


Specs: OS: Win 10 64bit, CPU: Intel i7 4770 3.4ghz x 4 core(8 threads), GPU: Nvidia GTX 1060 6GB, Ram: 16gig DDR3, Windows on 250gb Samsung Evo 860

Twitter: @SolarPortal
Instagram: @SolarPortal
User avatar
SolarPortal
Skyline Founder
Skyline Founder
 
Posts: 3631
Joined: 29 Jul 2012, 15:56
Location: UK
Skill: 3D Modeller
Skill: 2D Artist
Skill: Programmer
Skill: Level Designer


Return to Lua Scripting

Who is online

Users browsing this forum: No registered users and 3 guests