Cake
  • Cake
  • 50.75% (Neutral)
  • Private Topic Starter
14 years ago
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
Sponsor