Data Realms Fan Forums http://45.55.195.193/ |
|
activity:SetLandingZone() http://45.55.195.193/viewtopic.php?f=73&t=31119 |
Page 1 of 1 |
Author: | findude [ Tue Jun 05, 2012 3:24 pm ] |
Post subject: | activity:SetLandingZone() |
It doesn't seem to exist to my scripts, yet the activity scripts work just fine. What is this black magic? |
Author: | TheLastBanana [ Tue Jun 05, 2012 11:25 pm ] |
Post subject: | Re: activity:SetLandingZone() |
How are you calling it? |
Author: | findude [ Tue Jun 05, 2012 11:50 pm ] |
Post subject: | Re: activity:SetLandingZone() |
The usual way you call member functions...? Code: - RTE Lua Console - See the Data Realms Wiki for commands: http://www.datarealms.com/wiki/ ------------------------------------- SYSTEM: Scene "Tutorial Bunker" was loaded SYSTEM: Activity "Tutorial Mission" was successfully started ActivityMan:GetActivity():SetLandingZone(Vector(SceneMan.SceneWidth,0),Activity.TEAM_1) ERROR: [string "ActivityMan:GetActivity():SetLandingZone(Ve..."]:1: attempt to call method 'SetLandingZone' (a nil value) ConsoleMan:SaveAllText("Log.txt") Same thing if I do it from an object script. |
Author: | TheLastBanana [ Wed Jun 06, 2012 12:06 am ] |
Post subject: | Re: activity:SetLandingZone() |
Just double-checking, I've gotten caught with a stupid mistake in calling many times before. That's really odd. I think I remember encountering something like this before, too. I'm currently trying to get Data to upload the Activity-related Lua documentation to the wiki (for some reason, the automated script seems to be missing them), so maybe that'll help clear it up. |
Author: | findude [ Wed Jun 13, 2012 8:36 am ] |
Post subject: | Re: activity:SetLandingZone() |
Another similar issue: Code: local act = ActivityMan:GetActivity() act:SetOverridePurchaseList(rte.OffensiveLoadouts[math.ceil(math.random() * #rte.OffensiveLoadouts)], self.OwnerPlayer); Console claims no such function exists. |
Page 1 of 1 | All times are UTC [ DST ] |
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group http://www.phpbb.com/ |