Where to attach objects to vehicle
#8

Quote:
Originally Posted by SpiritEvil
View Post
This one goes OnGameModeInt() (or OnFilterScriptInt in case it's a filterscript).

pawn Code:
new object = CreateObject( 18646,0,0,0,0,0,0,80 );
    new veh1 = AddStaticVehicle(modelid, x, y, z, angle, color1, color2); // replace these to your needs
    new veh2 = AddStaticVehicle(modelid, x, y, z, angle, color1, color2); // replace these to your needs
    AttachObjectToVehicle( object, veh1, 0.370000, 0.000000, 0.679999, 0.000000, 0.000000, 0.000000 );
    AttachObjectToVehicle( object, veh2, 0.370000, 0.000000, 0.679999, 0.000000, 0.000000, 0.000000 );
    //repeat this for all the vehicles you want to attach this object to
1. Wgt make your code over and over again when you can use an array?

2. Why dont you it on vehicle spawn its more efficent i've heard.

3. Cant think of a 3...
Reply


Messages In This Thread
Where to attach objects to vehicle - by [LHT]Bally - 09.01.2012, 17:28
Re: Where to attach objects to vehicle - by [LHT]Bally - 09.01.2012, 19:27
Re: Where to attach objects to vehicle - by SpiritEvil - 09.01.2012, 20:11
Re: Where to attach objects to vehicle - by [LHT]Bally - 09.01.2012, 20:14
Re: Where to attach objects to vehicle - by SpiritEvil - 09.01.2012, 20:16
Re: Where to attach objects to vehicle - by IceCube! - 09.01.2012, 20:19
Re: Where to attach objects to vehicle - by SpiritEvil - 09.01.2012, 20:20
Re: Where to attach objects to vehicle - by IceCube! - 09.01.2012, 20:22
Re: Where to attach objects to vehicle - by SpiritEvil - 09.01.2012, 20:25
Re: Where to attach objects to vehicle - by [LHT]Bally - 09.01.2012, 20:43
Re: Where to attach objects to vehicle - by IceCube! - 09.01.2012, 20:47
Re: Where to attach objects to vehicle - by [LHT]Bally - 09.01.2012, 20:50

Forum Jump:


Users browsing this thread: 2 Guest(s)