Force a player to enter a turret via lua?

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
kinetosimpetus
Imperial Systems Expert
Imperial Systems Expert
Posts: 2381
Joined: Wed Mar 25, 2009 4:15 pm
Projects :: A secret project
Games I'm Playing :: Warframe STO

Force a player to enter a turret via lua?

Post by kinetosimpetus »

EnterVehicle(character, "rep_turrchair4") --(a remote turret chair)

throws a Sev 2 saying it is not a valid walker/flyer/hover, so is there a way to force a player to enter a turret?
Hidden/Spoiler:
[code]
Message Severity: 2
.\Source\LuaCallbacks_Mission.cpp(3204)
EntityVehicle(): entity is not an EntityFlyer|Hover|Walker![/code]
EnterTurret() does not exist.
Last edited by kinetosimpetus on Mon Jul 12, 2010 6:36 pm, edited 1 time in total.
User avatar
AgentSmith_#27
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 302
Joined: Thu Feb 11, 2010 3:10 pm
Projects :: No Projects I am ready to unveil
Games I'm Playing :: SWBF2-MW2-Madden 08
xbox live or psn: No gamertag set
Location: Zeroeditor
Contact:

Re: force a player to enter a turret via lua?

Post by AgentSmith_#27 »

I really probably shouldn't even post here, because I know extremely little about LUA, but is it possible that it's because a remote terminal's classlabel is: remoteterminal, and turrets are armedbuilding?
kinetosimpetus
Imperial Systems Expert
Imperial Systems Expert
Posts: 2381
Joined: Wed Mar 25, 2009 4:15 pm
Projects :: A secret project
Games I'm Playing :: Warframe STO

Re: Force a player to enter a turret via lua?

Post by kinetosimpetus »

Yeah, that's why it doesn't work that way. I want to find out what does work though.
User avatar
AgentSmith_#27
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 302
Joined: Thu Feb 11, 2010 3:10 pm
Projects :: No Projects I am ready to unveil
Games I'm Playing :: SWBF2-MW2-Madden 08
xbox live or psn: No gamertag set
Location: Zeroeditor
Contact:

Re: Force a player to enter a turret via lua?

Post by AgentSmith_#27 »

I think it only works for turrets and pilot-able vehicles, but this is all just stemming from things I've read on this website, not firsthand experience.

Try it out on something with the classlabel armedbuilding, now you've got me interested :P
kinetosimpetus
Imperial Systems Expert
Imperial Systems Expert
Posts: 2381
Joined: Wed Mar 25, 2009 4:15 pm
Projects :: A secret project
Games I'm Playing :: Warframe STO

Re: Force a player to enter a turret via lua?

Post by kinetosimpetus »

I switched it to the turret itself, same sev 2 error.
Hidden/Spoiler:
[code]
Message Severity: 2
.\Source\LuaCallbacks_Mission.cpp(3204)
EntityVehicle(): entity is not an EntityFlyer|Hover|Walker![/code]
Post Reply