SA-MP Forums Archive
How to create a drowning character - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How to create a drowning character (/showthread.php?tid=229491)



How to create a drowning character - PowerPC603 - 21.02.2011

Hi guys,

Does anyone know how you can create a character that's floating in the water, without creating NPC's?

I wanna create some extra class in my gamemode where you need to use a boat to rescue characters who are floating in the water.
I've searched the models (to be used with CreateObject) but didn't find anything useful.

The player would choose the "lifeguard" class (or something like that), enter "/work" to start his job and at certain positions, a character would be created in the water that represents a drowning person.
These characters don't need to move or anything, just float in the water until the player comes into range.
When the player comes into range, the character is deleted or placed onboard the boat as passenger.
Then the player would need to go back to the base to finish his mission.

Or do I have to create NPC's to do this?


Re: How to create a drowning character - Stigg - 21.02.2011

Baywatch here we come lolz.

Peace...


Re: How to create a drowning character - admantis - 21.02.2011

Quote:
Originally Posted by Stigg
Посмотреть сообщение
Baywatch here we come lolz.

Peace...
How is this related .. to .. huh, forget it.

The only thing I found is the big (4x times bigger than normal classes) Cesar skin, and it's not even floating. I think you can create NPC's.


Re: How to create a drowning character - Hiddos - 21.02.2011

Quote:
Originally Posted by Stigg
Посмотреть сообщение
Peace...
Wtf is with people saying 'peace' at the end of every posts :S

OT: You could try to search for the object of the cop you had to dispose of in the last quarry mission (Single player).


Re: How to create a drowning character - Stigg - 21.02.2011

Quote:
Originally Posted by Hiddos
Посмотреть сообщение
Wtf is with people saying 'peace' at the end of every posts :S
I use Peace... at the end of my everything, allways have.
Just something i do. Dont see why your spitting out the dummy.

Peace...


Re: How to create a drowning character - Calgon - 21.02.2011

Quote:
Originally Posted by Stigg
Посмотреть сообщение
I use Peace... at the end of my everything, allways have.
Just something i do. Dont see why your spitting out the dummy.

Peace...
He isn't, he's asking a valid question. How can you intend to be peaceful after that post?


Re: How to create a drowning character - Stigg - 21.02.2011

Quote:
Originally Posted by Calg00ne
Посмотреть сообщение
He isn't, he's asking a valid question. How can you intend to be peaceful after that post?
I'm a all round peacefull character, thats all.
I dont want no fuss.

Peace...


Re: How to create a drowning character - maramizo - 22.02.2011

Why not just make an NPC? /facepalm


Re: How to create a drowning character - PowerPC603 - 22.02.2011

I guess I won't have any other choice than using NPC's to do this.

Since it isn't possible to put an object in the passenger seat, I think I can do it with NPC's, with a blank script (npcidle.npc).

Is it possible to control NPC's via your gamemode?
Like PutPlayerInVehicle(NPCid, vehicleid, 1) and SetPlayerPos(NPCid, x, y, z)?

I've never used NPC's before, so this is new to me.