Data Realms Fan Forums http://45.55.195.193/ |
|
Single Level Activities http://45.55.195.193/viewtopic.php?f=73&t=12516 |
Page 1 of 1 |
Author: | Aspect [ Tue Oct 28, 2008 11:41 pm ] |
Post subject: | Single Level Activities |
There must be a way to have a custom activity for a single map using Lua. I just don't know how to do it. I want to use a special activity for just one map and them all come down at a single area. I looked at the Maginot mission lua, but it doesn't tell me how to use multiple types of spawns. I looked at the Fort Maligar mission lua but it still only gives dummies, though it does give random weapons. I don't know how it gives random weapons though, so I can't apply that to the actor spawns. Can someone help me out? If you wanted to be really helpful you would make it so it spawned one of the 2 robots with a random weapon in a rocket. |
Author: | Lord Tim [ Wed Oct 29, 2008 1:37 am ] |
Post subject: | Re: Single Level Activities |
I'm not sure exactly what you're asking. Were you looking for something like this: Code: AddActivity = GAScripted PresetName = Maginot SceneName = Maginot ScriptFile = Base.rte/Scenes/Scripts/Maginot.lua InCampaignStage = 1 LuaClassName = MaginotMission And Maginot does the location specific spawns by using Code: local attackLZ = SceneMan.Scene:GetArea("Attacker LZ"); if attackLZ then ship.Pos = Vector(attackLZ:GetRandomPoint().X, 0); end |
Author: | Aspect [ Wed Oct 29, 2008 2:59 am ] |
Post subject: | Re: Single Level Activities |
I think so. I'll get back to you... |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |