![]() |
|
|
|
#1
|
|||
|
|||
|
Thankyou Wolf. Placed just a train starting waypoint & one other waypoint, then saved the mission OK. Then reloaded mission & continued more waypoints & mission saved OK.
__________________
When one engine fails on a two engine bomber, you will always have enough power left to get to the scene of the crash. Get the latest COD Team Fusion patch info HERE |
|
#2
|
|||
|
|||
|
Is there a way to make a train spawn when a player gets close to it, via a trigger perhaps?
Secondly, Is there a way to make a train run in a loop continuosly? | |
|
#3
|
|||
|
|||
|
Quote:
Code:
public override void OnTrigger(int missionNumber, string shortName, bool active)
{
//call base classes OnTrigger method.
base.OnTrigger(missionNumber, shortName, active);
//if the trigger that was called is the trigger that we're looking for
if (shortName.Equals("PlayerCloseBy") && active)
{
GamePlay.gpPostMissionLoad("missions/Multi/Dogfight/mymission/train.mis"); // start the train mission
GamePlay.gpHUDLogCenter("Train just spawned"); // tell train spawned
GamePlay.gpGetTrigger(shortName).Enable = false; // turn trigger off
}
}
__________________
When one engine fails on a two engine bomber, you will always have enough power left to get to the scene of the crash. Get the latest COD Team Fusion patch info HERE Last edited by salmo; 12-16-2011 at 08:00 AM. |
|
#4
|
|||
|
|||
|
Thank you for the train info. Making a train disappear at the end of its journey and respawn in the other direction is exactly what im looking for.
Do you think you could make and example mission so i and others can open it and see just exactly how to do it? I read your post but im just not sure where to substitute my mission name etc... If the mission was called denyrafoil and the trigger was dovertrains ... what would the script look like? Will the submission start as the original mission continues? The objective is to add the trains to the mission as needed. Im hoping to create live rail traffic for each area of the map that only plays where ever the player flies. Thanks.. Last edited by Megahurt; 12-16-2011 at 08:17 PM. Reason: spelling and content |
![]() |
| Thread Tools | |
| Display Modes | |
|
|