Here is an examples from survival01 (from inside the Tick function):
if soviets.Resources > soviets.ResourceCapacity / 2 then
soviets.Resources = soviets.ResourceCapacity / 2
end
This will prevent the silos from being filled more than 50%.
Voila! Floating prevention achieved. Thanks, I didn't ...
Search found 6 matches
- Wed Sep 07, 2016 10:57 pm
- Forum: Mapping and Modding
- Topic: Spy Hunt
- Replies: 11
- Views: 46622
- Wed Sep 07, 2016 8:33 pm
- Forum: Mapping and Modding
- Topic: Spy Hunt
- Replies: 11
- Views: 46622
- Wed Sep 07, 2016 3:56 pm
- Forum: Mapping and Modding
- Topic: Spy Hunt
- Replies: 11
- Views: 46622
- Wed Sep 07, 2016 4:05 am
- Forum: Mapping and Modding
- Topic: Spy Hunt
- Replies: 11
- Views: 46622
- Wed Aug 24, 2016 8:43 am
- Forum: Mapping and Modding
- Topic: Spy Hunt
- Replies: 11
- Views: 46622
Thanks for the tip. I've been using that and Fort Lonestar to try to figure out how the lua works. So far I haven't been able to do much, my patrols don't seem to be working and setting win conditions is miles off. The patrol tutorial on GitHub didn't really help much either. I did learn how to add ...
- Mon Jul 18, 2016 9:32 am
- Forum: Mapping and Modding
- Topic: Spy Hunt
- Replies: 11
- Views: 46622
Spy Hunt
Greetings! I’ve been making maps for Red Alert 2 for a while now and I thought I’d try my hand at making something for OpenRA. So I starting poking and prodding at some of the originals that had scripting I could use as an example. The lua stuff does not make much sense to me. I’m sure I’ll ...