changing aipackagedata

Post » Wed Jun 20, 2012 12:08 pm

hi i wonder if its possible to change packagedata on the fly per script?

since i has public data there should be a way to access them somehow.

i want to change max distance on a follow package from a follower without making 20 versions of it with premade distancevalues.

any idea on this?
User avatar
Jade Barnes-Mackey
 
Posts: 3418
Joined: Thu Jul 13, 2006 7:29 am

Post » Wed Jun 20, 2012 4:58 pm

hi i wonder if its possible to change packagedata on the fly per script?

since i has public data there should be a way to access them somehow.

i want to change max distance on a follow package from a follower without making 20 versions of it with premade distancevalues.

any idea on this?

I don't have CK open right now so I can't check, but if you go to add a property to a script, is PackageData or AIPackageData a type you can choose from for the property? If so, I'd try to fill it in the editor and see what options come up.
User avatar
Dean Ashcroft
 
Posts: 3566
Joined: Wed Jul 25, 2007 1:20 am

Post » Wed Jun 20, 2012 12:40 pm

Negative, package properties are per-package-only. I wish I could make package variables point to script variables or even globals. You can retrieve package data, but not modify it (And by retrieve it, I mean by logic condition only, not script)
User avatar
Tiff Clark
 
Posts: 3297
Joined: Wed Aug 09, 2006 2:23 am

Post » Wed Jun 20, 2012 3:44 pm

than public means public to all procedures in the packagestack only .....
User avatar
CHARLODDE
 
Posts: 3408
Joined: Mon Apr 23, 2007 5:33 pm

Post » Wed Jun 20, 2012 12:08 pm

Public means you can access that variable when you derive a package from a template.


Ex.

If I have a template that has a bunch of procedures, each of those procedures needs variables, so you have to define them. Now if I derive a package from a template, I'm only going to see the variables that were set to public.
User avatar
Karen anwyn Green
 
Posts: 3448
Joined: Thu Jun 15, 2006 4:26 pm


Return to V - Skyrim