Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Tiberian Technologies / Blackhand Studios » Tiberian Technologies Forum » Scriptbug JFW_Disable_Transitions_Zone
Scriptbug JFW_Disable_Transitions_Zone [message #459496] Tue, 15 November 2011 12:05 Go to next message
rrutk is currently offline  rrutk
Messages: 617
Registered: June 2007
Karma: 0
Colonel
Is there a reason, why a JFW_Disable_Transitions_Zone doesn't work on a RA_Underwater_Zone Zone?

-----------

Source:

void JFW_Disable_Transitions_Zone::Entered(GameObject *obj,GameObject *enterer)
{
if (Is_Vehicle(enterer))
{
Commands->Enable_Vehicle_Transitions(enterer,false);
}
}

void JFW_Disable_Transitions_Zone::Exited(GameObject *obj,GameObject *exiter)
{
if (Is_Vehicle(exiter))
{
Commands->Enable_Vehicle_Transitions(exiter,true);
}
}

[Updated on: Tue, 15 November 2011 12:17]

Report message to a moderator

Re: Scriptbug JFW_Disable_Transitions_Zone [message #459499 is a reply to message #459496] Tue, 15 November 2011 13:53 Go to previous messageGo to next message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
Have you checked the source of the other script? Maybe it turns them right back on again.

Also, disabling transitions doesn't prevent people LEAVING vehicles as I recall, it just stops them entering them.


http://steamsignature.com/card/1/76561197975867233.png

[Updated on: Tue, 15 November 2011 13:54]

Report message to a moderator

Re: Scriptbug JFW_Disable_Transitions_Zone [message #459501 is a reply to message #459496] Tue, 15 November 2011 14:41 Go to previous messageGo to next message
kamuixmod is currently offline  kamuixmod
Messages: 211
Registered: July 2010
Karma: 0
Recruit
is there a script then to prevent people from leaving a vehicle?or to make the vehicle move on itself even when a player sits inside.

I wanted to make a player sit inside an apc for example which follows a waypath. and the player shouldnt be able to leave the vehicle nor control it by manipulating the direction on which the vehicle drives


http://img46.imageshack.us/img46/5836/kmauixsignature.png
Re: Scriptbug JFW_Disable_Transitions_Zone [message #459502 is a reply to message #459501] Tue, 15 November 2011 14:49 Go to previous messageGo to next message
rrutk is currently offline  rrutk
Messages: 617
Registered: June 2007
Karma: 0
Colonel
I created now giant script_zone_all below the ra_underwater_zone and now it works. Smile

the disable_transition script blocks also LEAVING the submarine now!

but it doen't work on the underwater_zone.

the naval&flying map will be ready this week, I hope. retextured.


[Updated on: Tue, 15 November 2011 14:51]

Report message to a moderator

Re: Scriptbug JFW_Disable_Transitions_Zone [message #459503 is a reply to message #459496] Tue, 15 November 2011 15:03 Go to previous messageGo to next message
kamuixmod is currently offline  kamuixmod
Messages: 211
Registered: July 2010
Karma: 0
Recruit
also des disable transition sorgt dafür das auch die Leute nicht die Fahrzeuge verlassen können?

http://img46.imageshack.us/img46/5836/kmauixsignature.png
Re: Scriptbug JFW_Disable_Transitions_Zone [message #459509 is a reply to message #459502] Tue, 15 November 2011 17:59 Go to previous messageGo to next message
Jerad2142 is currently offline  Jerad2142
Messages: 3805
Registered: July 2006
Location: USA
Karma: 6
General (3 Stars)
rrutk wrote on Tue, 15 November 2011 14:49

I created now giant script_zone_all below the ra_underwater_zone and now it works. Smile

the disable_transition script blocks also LEAVING the submarine now!

but it doen't work on the underwater_zone.

the naval&flying map will be ready this week, I hope. retextured.




If APB disables the sub's transitions when they submerge and enables them when they surface, that'll override jfw's script.


Re: Scriptbug JFW_Disable_Transitions_Zone [message #459524 is a reply to message #459509] Wed, 16 November 2011 03:05 Go to previous message
rrutk is currently offline  rrutk
Messages: 617
Registered: June 2007
Karma: 0
Colonel
kamuixmod wrote on Tue, 15 November 2011 15:03

also des disable transition sorgt dafür das auch die Leute nicht die Fahrzeuge verlassen können?


ja.


Jerad Gray wrote on Tue, 15 November 2011 17:59

rrutk wrote on Tue, 15 November 2011 14:49

I created now giant script_zone_all below the ra_underwater_zone and now it works. Smile

the disable_transition script blocks also LEAVING the submarine now!

but it doen't work on the underwater_zone.

the naval&flying map will be ready this week, I hope. retextured.




If APB disables the sub's transitions when they submerge and enables them when they surface, that'll override jfw's script.


But a lot of the features contained in RA_UnderwaterZone (I looked into the sourcecode) seems not to work in standard leveledit.

Previous Topic: TT Server issue
Next Topic: Script request
Goto Forum:
  


Current Time: Sun Apr 28 18:23:39 MST 2024

Total time taken to generate the page: 0.00715 seconds