I have a scripted entity that i would like to make free, but it would seem that setting the Price to zero causes it to not show up in the staff menu.
I am really new to PA modding and i can't seem to find documentation on various effects of price on the wiki or other guides.
Making a scripted entity free
Moderator: NBJeff
-
- level0
- Posts: 5
- Joined: Tue Oct 09, 2012 12:05 am
Re: Making a scripted entity free
Hi Crazy Man!
You're right in concluding anything needs a price set for it to show up in menus.. Zero wont work..
You could maybe try a very small floating point nr; like 0.00001 (don't know if that'll work, it'll probably be uglier to display in the menus than a price of 1.
So I would actually suggest either just using a (symbolic) price of 1 for your item.
Or actually set so you don't pay but receive a small amount as a subsidy, say 1000...
Wish I had a better solution for you, but don't...
You're right in concluding anything needs a price set for it to show up in menus.. Zero wont work..
You could maybe try a very small floating point nr; like 0.00001 (don't know if that'll work, it'll probably be uglier to display in the menus than a price of 1.
So I would actually suggest either just using a (symbolic) price of 1 for your item.
Or actually set so you don't pay but receive a small amount as a subsidy, say 1000...
Wish I had a better solution for you, but don't...
Re: Making a scripted entity free
Well im using a price of -1 for my dev tool, as im standing for the same problem. and i build entities, because i need something to start a script vie menu. Well, the reason why i have chosen -1 is that will also work, if you have a negative bank balance, while price of 1 blocks if you have a negative bank balance.
Yes, you can cheat you money with it, 1000$ for 1000 clicks, but well i have also an entity with a price of -100.000$
i dont think that floating will work.
Yes, you can cheat you money with it, 1000$ for 1000 clicks, but well i have also an entity with a price of -100.000$
i dont think that floating will work.
- aubergine18
- level2
- Posts: 231
- Joined: Sun Jul 05, 2015 3:24 pm
Re: Making a scripted entity free
-1 is often used to represent 'none', hence same problem as 0.
In many menus 0 will work fine (eg. objects, utilities, foundations, materials), but I think staff menu in particular requires 1 or above.
In many menus 0 will work fine (eg. objects, utilities, foundations, materials), but I think staff menu in particular requires 1 or above.
- aubergine18
- level2
- Posts: 231
- Joined: Sun Jul 05, 2015 3:24 pm
Re: Making a scripted entity free
btw, try adding a ConstructionTime setting as that sometimes makes things appear on menus
Re: Making a scripted entity free
aubergine18 wrote:-1 is often used to represent 'none', hence same problem as 0.
I wouldn't be surprised if this game sometime use bith to represent none
- aubergine18
- level2
- Posts: 231
- Joined: Sun Jul 05, 2015 3:24 pm
Re: Making a scripted entity free
MaxStackSize is a good example of -1 and 0 being same; all Vehicle objects have a MaxStackSize of -1, even though MaxStackSize defaults to 0. Very odd stuff.
Who is online
Users browsing this forum: No registered users and 16 guests