Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
Offline Cake  
#1 Posted : Wednesday, February 1, 2012 3:05:46 PM(UTC)
Cake
Private
Joined: 1/30/2012(UTC)
Posts: 1

Buongiorno!
I've started making my first map for RA3 a couple of days ago, but have ran into a couple of obstacles since.
I can't seem to figure them out for myself so decided to post some questions here [even though the forum doesn't seem that lively] :j

Anyway, the first thing I'd like to have cleared is how I can successfully add objects through scripting.
What I did was adding a script which should spawn an Allied outpost at a certain waypoint I created.
The following is how I set up the script:

IF:
Player 'Player 2' is Faction Name: Allies (Player -> Faction and Start Position -> Player is faction.[66])
THEN:
Spawn unit of type 'AlliedOutpost' on Team 'Player_2/teamPlayer_2' at Waypoint 'Waypoint 1' (Object Type -> Spawn -> Spawn an unnamed object on a team at a waypoint.[36])

In-game (skirmish) I chose to be Allies and I spawned as player 2, though the outpost doesn't appear.
Does anyone know if I'm doing something wrong here?

Edit: Nevermind the above question; I've gotten the result I wanted with different scripting.. :j

Furthermore, I'd like to increase/decrease the vision range of certain objects.
I changed the Vision Range Mod of an Observation Post (in the Object Properties window) but the Observation Post obviously retains its standard vision range in-game. Does anyone know what's up here? I tried finding a possibility to change the vision range through a script, but couldn't find one..


For now I'll just leave it at these two questions :j

Cake

Edited by user Wednesday, February 1, 2012 8:58:55 PM(UTC)  | Reason: Not specified

Sponsor
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.