FileFront Forums

FileFront Forums (http://forums.filefront.com/)
-   SW:BF2 Modding, Mapping and Editing (http://forums.filefront.com/sw-bf2-modding-mapping-editing-1308/)
-   -   How to get players respawn in vehicles with lua? (http://forums.filefront.com/sw-bf2-modding-mapping-editing/344656-how-get-players-respawn-vehicles-lua.html)

Black Eye January 3rd, 2008 05:10 AM

How to get players respawn in vehicles with lua?
 
There is something wrong in my lua:
Code:

OnCharacterSpawn(
function(player)
if GetObjectTeam(GetCharacterUnit(player)) ==  2 then
If GetCommandPostTeam("tfa-cp2") == 2 then
EnterVehicle(player, "Vehspawn1")
end
end
end
)

I just want that if i choose team 2 (cis in my case) and if i choose the cp named "tfa-cp2", that i respawn in a vehicle.
EDIT: the "Vehspawn1" is the name of my vehicle
Can someone help me? Thanks in advance!

*$Lil Jay$* January 8th, 2008 10:50 AM

Re: How to get players respawn in vehicles with lua?
 
I don't think anyone has done that, your best bet would be to go to the Gametoast forums and ask there

Black Eye January 9th, 2008 06:09 AM

Re: How to get players respawn in vehicles with lua?
 
ok thanks


All times are GMT -7.

Powered by vBulletin®
Copyright ©2000 - 2016, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.