Page 1 of 1

Force a player to enter a turret via lua?

Posted: Sun Jul 11, 2010 10:24 pm
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.

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

Posted: Sun Jul 11, 2010 10:34 pm
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?

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

Posted: Sun Jul 11, 2010 11:40 pm
by kinetosimpetus
Yeah, that's why it doesn't work that way. I want to find out what does work though.

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

Posted: Mon Jul 12, 2010 12:02 am
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

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

Posted: Mon Jul 12, 2010 6:41 pm
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]