Quote: --- Original message by: RododoI am trying to set up a script to make every passenger in a pelican get out of it when the player uses the zoom command.
(script continuous pelican
(if
(and
(= (player_action_test_zoom) true)
(= (vehicle_driver pelican) (list_get (players)0))
)
(begin
(vehicle_unload pelican rider)
(player_action_test_reset)
)
)
)
How the script should work: when the player is in the driver seat of the pelican named "pelican" and he uses the zoom command, everyone in the "rider" seat should get out.
What does the script actually do: 11.20.12 14:36:02
[pelican line 5] i expected a unit, but this function returns a object.: (list_get (players)0))recompiling scripts after scenarios were merged.
[pelican line 3] this left parenthesis is unmatched.: (and
The problem is in that function that returns an object instead of an unit. The question is: how is it possible for it to return an object???
Edited by Rododo on Nov 20, 2012 at 08:49 AMEdited by Rododo on Nov 20, 2012 at 08:53 AM I. e,
.