Re: Simple(?) Lua Request/Guidance
Here is a starting point; an example of how to spawn an actor in an area that has been defined in the Area editor:
Code:
local Act = CreateAHuman("ActorName", "FolderName.rte")
if Act then
Act.Pos = SceneMan.Scene:GetArea("Area1"):GetCenterPoint()
Act.Team = Activity.TEAM_1
Act.AIMode = Actor.AIMODE_GOTO
Act:AddAISceneWaypoint(SceneMan.Scene:GetArea("Area2"):GetCenterPoint())
local Wpn = CreateHDFirearm("Medium Digger", "Base.rte")
if Wpn then
Act:AddInventoryItem(Wpn)
end
MovableMan:AddActor(Act)
end
It is also possible to get
a random point inside an area, instead of the center point.