StanMarsh Posted July 3, 2013 Posted July 3, 2013 Hola, bueno vi un mod (Cleo) Que me intereso mucho para hacer un ambiente mas realista a mi server bueno el mod consiste en que al llegar a una cierta velocidad un arma dispara y entonces se podria usar create Weapon para hacer eso? En el foro se me conocia Como alexmercer1998 y Ezio Auditore esta es mi nuevo nombre para que esten informados
Chaz-CR Posted July 3, 2013 Posted July 3, 2013 Queres poner un Cleo en el server o crear uno parecido? ||Age Of Battles|WarLife|RPG|DM|FR|24/7|Custom Skins|Cars|Weapons|| http://facebook.com/AoBMTA - Fanpage
StanMarsh Posted July 3, 2013 Author Posted July 3, 2013 Queres poner un Cleo en el server o crear uno parecido? Parecido. En el foro se me conocia Como alexmercer1998 y Ezio Auditore esta es mi nuevo nombre para que esten informados
BorderLine Posted July 3, 2013 Posted July 3, 2013 y usa esto para detectaar la velocidad https://wiki.multitheftauto.com/wiki/GetElementVelocity Actual Nick: [XGN]BorderLine Actual Clan: XLatino Actual Status: Staff, Mod Level 1 (BOSS)Yakuza - [vS]Yakuza - [sXE]Yakuza - [uG]Yakuza - [FTLS]Racing - [XGN]Borderline
StanMarsh Posted July 3, 2013 Author Posted July 3, 2013 y usa esto para detectaar la velocidadhttps://wiki.multitheftauto.com/wiki/GetElementVelocity bueno y al detectar la velocidad como hago para que el arma dispare? y le haga el attach En el foro se me conocia Como alexmercer1998 y Ezio Auditore esta es mi nuevo nombre para que esten informados
BorderLine Posted July 3, 2013 Posted July 3, 2013 https://wiki.multitheftauto.com/wiki/SetWeaponState Actual Nick: [XGN]BorderLine Actual Clan: XLatino Actual Status: Staff, Mod Level 1 (BOSS)Yakuza - [vS]Yakuza - [sXE]Yakuza - [uG]Yakuza - [FTLS]Racing - [XGN]Borderline
StanMarsh Posted July 3, 2013 Author Posted July 3, 2013 https://wiki.multitheftauto.com/wiki/SetWeaponState Ejemplo :I? En el foro se me conocia Como alexmercer1998 y Ezio Auditore esta es mi nuevo nombre para que esten informados
BorderLine Posted July 3, 2013 Posted July 3, 2013 no es nesesario, los argumentos estan mas que claro weap = createWeapon(... if speed > 150 then setWeaponState( weap, "firing") .. Actual Nick: [XGN]BorderLine Actual Clan: XLatino Actual Status: Staff, Mod Level 1 (BOSS)Yakuza - [vS]Yakuza - [sXE]Yakuza - [uG]Yakuza - [FTLS]Racing - [XGN]Borderline
StanMarsh Posted July 3, 2013 Author Posted July 3, 2013 no es nesesario, los argumentos estan mas que claroweap = createWeapon(... if speed > 150 then setWeaponState( weap, "firing") .. me da error en la linea 1 attempt to call global "createweapon" (a nil value) En el foro se me conocia Como alexmercer1998 y Ezio Auditore esta es mi nuevo nombre para que esten informados
NodZen Posted July 3, 2013 Posted July 3, 2013 Me imagino que no habrás copiado tal cual te lo dió Yakuza y lo pusiste en tu script... Es un ejemplo, no es el script. ------------------------------------------------------------------------------------------ My scripts http://community.multitheftauto.com/index.php?p=resources&s=details&id=6977 http://community.multitheftauto.com/index.php?p=resources&s=details&id=7740
StanMarsh Posted July 3, 2013 Author Posted July 3, 2013 Me imagino que no habrás copiado tal cual te lo dió Yakuza y lo pusiste en tu script... Es un ejemplo, no es el script. no yo lo scriptee aqui esta el script weap = createWeapon("38") if speed > 12 then setWeaponState( weap, "firing") end En el foro se me conocia Como alexmercer1998 y Ezio Auditore esta es mi nuevo nombre para que esten informados
Plate Posted July 3, 2013 Posted July 3, 2013 weap = createWeapon("38") if speed > 12 then setWeaponState( weap, "firing", true) end Visita Full GameZ DayZ Mod Server IP: mtasa://158.69.125.144:29015
BorderLine Posted July 3, 2013 Posted July 3, 2013 eso no sera suficiente.. te falta el getelementposition el getoccupedvehicle argumentos del createweapon, y el evento que seria onclientvehicleneter Actual Nick: [XGN]BorderLine Actual Clan: XLatino Actual Status: Staff, Mod Level 1 (BOSS)Yakuza - [vS]Yakuza - [sXE]Yakuza - [uG]Yakuza - [FTLS]Racing - [XGN]Borderline
StanMarsh Posted July 4, 2013 Author Posted July 4, 2013 me suige dando error .-. Probe asi: weap = createWeapon("38") if speed > 12 then setWeaponState( weap, "firing", true) end local x,y,z = getElementPosition( myCar ) -- create the minigun; weap = createObject ( 38, x, y, z + 3 ) -- attach the minigun to the car; attachElements ( samsite, myCar, 0, 0, 0 ) me suige dando error en la linea 1 En el foro se me conocia Como alexmercer1998 y Ezio Auditore esta es mi nuevo nombre para que esten informados
BorderLine Posted July 4, 2013 Posted July 4, 2013 no has definido my car. ni tampoco samsite Actual Nick: [XGN]BorderLine Actual Clan: XLatino Actual Status: Staff, Mod Level 1 (BOSS)Yakuza - [vS]Yakuza - [sXE]Yakuza - [uG]Yakuza - [FTLS]Racing - [XGN]Borderline
StanMarsh Posted July 4, 2013 Author Posted July 4, 2013 no has definido my car. ni tampoco samsite Dame un ejemplo no entiendo... En el foro se me conocia Como alexmercer1998 y Ezio Auditore esta es mi nuevo nombre para que esten informados
Plate Posted July 4, 2013 Posted July 4, 2013 por ejemplo function comandoxd() local x, y, z = getElementPosition(localPlayer) local mycar = createVehicle(411, x, y, z) local weap = createWeapon(38, 0, 0, 0) attachElements (weap, mycar) end addCommandHandler("ejemplo", comandoxd) Visita Full GameZ DayZ Mod Server IP: mtasa://158.69.125.144:29015
NodZen Posted July 4, 2013 Posted July 4, 2013 por ejemplo function comandoxd() local x, y, z = getElementPosition(localPlayer) local mycar = createVehicle(411, x, y, z) local weap = createWeapon(38, 0, 0, 0) attachElements (weap, mycar) end addCommandHandler("ejemplo", comandoxd) createWeapon no vá con ID si no con el nombre del arma. ------------------------------------------------------------------------------------------ My scripts http://community.multitheftauto.com/index.php?p=resources&s=details&id=6977 http://community.multitheftauto.com/index.php?p=resources&s=details&id=7740
Recommended Posts