CODE |
SETONSPAWNENTRY,staticspawner,2/z/INC,5
|
what im trying to do is adress a static on entry #2 of the spawner called "staticspawner" and lift it up
somehow this doesnt work for me any ideas ?
QUOTE (olsyke @ April 27, 2006 11:11 am) |
CODE | SETONSPAWNENTRY,staticspawner,2/z/INC,5
|
what im trying to do is adress a static on entry #2 of the spawner called "staticspawner" and lift it up
somehow this doesnt work for me any ideas ?
|
QUOTE |
SETONSPAWNENTRY,staticspawner,2/z/INC,5
|
The number '2' in that line refers to the subgroup of the entry, not just its position in the spawner gump.
So just assign your static that you are spawning to subgroup 2.
isnt there a way to directly adress a single spawn entry ? moving a whole subgroup wont do for me
ah, sorry. I was thinking of the SETONSPAWN instead of the SETONSPAWNENTRY keyword.
You are correct, that keyword goes by entry number, not subgroup number, but note that it is zero based, so the first entry is 0, second is 1, etc.
QUOTE |
- added the new "SETONSPAWNENTRY[,spawnername],entrystring/prop/value/..." keyword, that allows you to modify the individual spawn entry properties on a spawner. (thanks to Todo for the suggestion) The entrystring argument will be used to find all spawn entries containing the specified string. If the spawnername argument is omitted, then the current spawner will be used. If the entrystring is a numeric value, then it will be used as a zero-based index into the spawn entry list rather than as a string match.
|
well the actual problem is that with this:
CODE |
SETONSPAWNENTRY,Staticspawner,1/z/INC,5
|
-> i still get ":is not a valid type name"
I will check it out.
(edit)
the SETONSPAWNENTRY keyword sets properties on the spawner entry itself such as MaxCount, PackRange, SubGroup etc.
It does not set properties on the spawns for that entry which is what you want to do. You need to use the SETONSPAWN keyword for that, and that requires that you refer to them by subgroup.
SETONSPAWN[,spawnername],subgroup/prop/value/prop2/value...
and using SETONSPAWN would also enable me to only change one entry of that subgroup ?
QUOTE (olsyke @ April 27, 2006 01:14 pm) |
and using SETONSPAWN would also enable me to only change one entry of that subgroup ? |
no, it will operate on the all spawns in that subgroup.