Community Forum

tipreferencepoint

Forum Overview >> Scripting

CategoryScripting
Created30.07.2016 14:22


Fred Zanella (fredzaza2) 30.07.2016 14:22
hi ,all
I would like my mod detect "tipReferencePoint" from an other vehicule .
this is my script , but i don't found the "tipReferencePoint"

for i=1, table.getn(g_currentMission.vehicles) do
local vehi = g_currentMission.vehicles[i];
if vehi.tipReferencePoint~= nil then
print("ok")
end;
end;

i can detect "tipReferencePoints" but not "tipReferencePoint" ( transform index )
can somebody tell me what is the good syntaxe for detect " tipReferencePoint" ?
thank you

Emil Drefers (Unknown) 02.08.2016 07:31
Hi,

here you can see what the data structure looks like:
http://ls-mods.de/scriptDocumentation.php?lua_file=vehicles/specializations/Trailer

Cheers,
Emil


Note: Log in to post. Create a new account here.