|
FAQ
• Search • Login
|
|
Page 1 of 1
|
[ 7 posts ] |
|
Instance name\present name ?
Author |
Message |
grenade
Joined: Mon Aug 18, 2008 5:29 pm Posts: 607 Location: Ukraine,Odessa in the ASC bunker-base
|
Instance name\present name ?
Whats better to use ? And i know b21 use present names, so if i change present on instance i can use any b21 mod(not the lua anyway)?
|
Mon Sep 29, 2008 9:44 am |
|
|
Gotcha!
Joined: Tue Apr 01, 2008 4:49 pm Posts: 1972 Location: The Netherlands
|
Re: Instance name\present name ?
I'd go with PresetName, although I have no idea why it was changed. Be sure to spell it right when you change it though: PresetName, not PresentName.
|
Mon Sep 29, 2008 9:53 am |
|
|
grenade
Joined: Mon Aug 18, 2008 5:29 pm Posts: 607 Location: Ukraine,Odessa in the ASC bunker-base
|
Re: Instance name\present name ?
Ok,Thx.
|
Mon Sep 29, 2008 10:18 am |
|
|
findude
Joined: Tue Dec 12, 2006 3:10 pm Posts: 495 Location: Uncertain quantum state
|
Re: Instance name\present name ?
I think PresetName should be used for the "original" objects etc. and InstanceName when making a CopyOf. Or the other way around, I'm not sure. Making CopyOf's and just changing stuff doesn't seem to work always, you need to supply a InstanceName now.
|
Mon Sep 29, 2008 12:24 pm |
|
|
Kallemort
Joined: Tue Aug 21, 2007 2:55 pm Posts: 948
|
Re: Instance name\present name ?
I think Data is just replacing some old stuff but is doing it more gently this time around, so we don't need to convert every single mod.
|
Mon Sep 29, 2008 12:36 pm |
|
|
Lord Tim
Joined: Fri Apr 27, 2007 4:55 pm Posts: 1178 Location: America!
|
Re: Instance name\present name ?
Use PresetName. InstanceName is only still there for compatability, and I don't know how long it will continue to be there.
Anyways, all the Lua code uses PresetName.
actor.InstanceName gives you nothing. actor.PresetName gives you the name.
|
Mon Sep 29, 2008 3:14 pm |
|
|
grenade
Joined: Mon Aug 18, 2008 5:29 pm Posts: 607 Location: Ukraine,Odessa in the ASC bunker-base
|
Re: Instance name\present name ?
Ok , i understood.
|
Mon Sep 29, 2008 3:17 pm |
|
|
|
|
Page 1 of 1
|
[ 7 posts ] |
|
Who is online |
Users browsing this forum: No registered users |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|