Re: [Plib-users] psl setting variables
Brought to you by:
sjbaker
From: Steve B. <sjb...@ai...> - 2004-02-05 23:03:02
|
Karl Moritz Hermann wrote: > Umm, > sorry for asking this question, but the PSL manual didn't > really help me solving my problem: I have a PSL script, > which is used in combination with various entites of a class, > now each entity should create a new program of that script, > passing it along a variable "id" when creating it, so that > the script can use this variable in it's extension function. > I suppose setUserData would be the appropriate function to > use, but couldn't figure out, how to. I generally pass parameters into scripts by having the script call a pair of extension functions: 'getArgc()' and 'getArgv(n)'. ---------------------------- Steve Baker ------------------------- HomeEmail: <sjb...@ai...> WorkEmail: <sj...@li...> HomePage : http://www.sjbaker.org Projects : http://plib.sf.net http://tuxaqfh.sf.net http://tuxkart.sf.net http://prettypoly.sf.net -----BEGIN GEEK CODE BLOCK----- GCS d-- s:+ a+ C++++$ UL+++$ P--- L++++$ E--- W+++ N o+ K? w--- !O M- V-- PS++ PE- Y-- PGP-- t+ 5 X R+++ tv b++ DI++ D G+ e++ h--(-) r+++ y++++ -----END GEEK CODE BLOCK----- |